Skip to content

Instantly share code, notes, and snippets.

@jhollingworth
Created April 10, 2013 10:32
Show Gist options
  • Save jhollingworth/5353529 to your computer and use it in GitHub Desktop.
Save jhollingworth/5353529 to your computer and use it in GitHub Desktop.
Git alias "gt" for tracking the current branch
FOR /F "delims=" %%i IN ('git rev-parse --abbrev-ref HEAD') DO git branch --set-upstream %%i origin/%%i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment