Skip to content

Instantly share code, notes, and snippets.

@stuxo
stuxo / syncgitrepos.sh
Last active August 29, 2015 14:14
[sh] Sync git repos
# go to your repository
cd my_project
# check your existing remote
git remote -v
# origin git@mydomain.tld:my_project.git (fetch)
# origin git@mydomain.tld:my_project.git (push)
# Add a new remote, a github.com private repository for example
# the --mirror flag is what's different from a simple new remote