Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@qguv
Created June 5, 2014 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qguv/7dfd7b76a3880a0475a1 to your computer and use it in GitHub Desktop.
Save qguv/7dfd7b76a3880a0475a1 to your computer and use it in GitHub Desktop.
an introduction beyond the basic commit workflow

INTERMEDIATE GIT

git v2.0.0

documentation

$ cd ~/Desktop

  • git help branch
  • man git
  • not man git branch

logistics

$ cd dev/battleship-go

  • .gitignore file
  • myproject/.git directory
    • what is a branch anyway?
  • HTTPS vs. SSH

git magic

$ cd dev/battleship-go

  • add --patch
    • canonicalBattleship()canonicalBattleships() in ships.go
    • canonicalBattleship()canonicalBattleships() in fight.go

$ cd dev/intermediate-git

  • rebase --interactive
  • git config --global
  • git config --global alias.lo "log --oneline"
  • travis-ci

cheap branches & merging

$ md dev/intermediate-git && git init

  • branch a lot
  • merge types
    • normal (generates a commit)
    • fast-forward merge (no changes)
    • rebase (magic)

not just for software

$ cd dev/pre-proposal

git GUIs

$ cd dev/cs

$ cd dev/rpcalc

  • invaluable for formal medium-to-large projects
  • develop vs. master
  • not ideal for small, personal, or huge (kernel, git) projects
  • git-flow tool

sgbm diagram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment