Last active
August 29, 2015 14:24
-
-
Save AshCoolman/c0bc7e6bf9eceb7d8c1e to your computer and use it in GitHub Desktop.
Usefull shell scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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