Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created March 3, 2010 21:34
Show Gist options
  • Save defunkt/321059 to your computer and use it in GitHub Desktop.
Save defunkt/321059 to your computer and use it in GitHub Desktop.
Tracking branch shortcut

Old way:

$ git checkout -b preandpost_fork_hooks  scotttam/preandpost_fork_hooks
Branch preandpost_fork_hooks set up to track remote branch preandpost_fork_hooks from scotttam.
Switched to a new branch 'preandpost_fork_hooks'

New way:

$ git checkout preandpost_fork_hooks
Branch preandpost_fork_hooks set up to track remote branch preandpost_fork_hooks from scotttam.
Switched to a new branch 'preandpost_fork_hooks'

$ git version
git version 1.6.6.1

See http://gitlog.wordpress.com/2010/01/13/git-1-6-6/ for the release notes.

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