Skip to content

Instantly share code, notes, and snippets.

@FeliciousX
Last active August 29, 2015 14:04
Show Gist options
  • Save FeliciousX/78003adb552699dda11e to your computer and use it in GitHub Desktop.
Save FeliciousX/78003adb552699dda11e to your computer and use it in GitHub Desktop.
git tips and tricks :3
for remote in `git branch -r`; do git branch ${remote:7} --track $remote; done
git fetch --all
git pull --all
git branch branch_name
git push -u origin branch_name
@FeliciousX
Copy link
Author

${remote:7} is to omit the "origin/"

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