Skip to content

Instantly share code, notes, and snippets.

@frntn
Last active August 1, 2017 12:18
Show Gist options
  • Save frntn/159405c7a00a8d7b4b79ce94464cd0fc to your computer and use it in GitHub Desktop.
Save frntn/159405c7a00a8d7b4b79ce94464cd0fc to your computer and use it in GitHub Desktop.
Git: pull all + push all
# 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