Last active
August 1, 2017 12:18
-
-
Save frntn/159405c7a00a8d7b4b79ce94464cd0fc to your computer and use it in GitHub Desktop.
Git: pull all + push all
This file contains hidden or 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
# Pull all | |
git clone [email protected]:frntn/sample.git | |
cd sample/ | |
git checkout --detach | |
git fetch origin '+refs/heads/*:refs/heads/*' | |
# Push all | |
git remote add alternate [email protected]:frntn/sample.git | |
git push -u alternate --all | |
git push -u alternate --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment