Skip to content

Instantly share code, notes, and snippets.

@qaiser42
Created June 10, 2017 18:25
Show Gist options
  • Select an option

  • Save qaiser42/5379b8782377d30ef3d272514032a96e to your computer and use it in GitHub Desktop.

Select an option

Save qaiser42/5379b8782377d30ef3d272514032a96e to your computer and use it in GitHub Desktop.
Track all remote branches localy
for remote in `git branch -r | grep -v '\->'`; do git branch --track $remote; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment