Skip to content

Instantly share code, notes, and snippets.

@AshCoolman
Last active August 29, 2015 14:24
Show Gist options
  • Save AshCoolman/c0bc7e6bf9eceb7d8c1e to your computer and use it in GitHub Desktop.
Save AshCoolman/c0bc7e6bf9eceb7d8c1e to your computer and use it in GitHub Desktop.
Usefull shell scripts
git clone $1 unique_local_name
cd unique_local_name
for remote in `git branch -r | grep -v master `; \
do git checkout --track $remote ; done
git remote add neworigin $2
git push --all neworigin
git push --tags neworigin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment