Skip to content

Instantly share code, notes, and snippets.

@qmx
Created January 7, 2010 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmx/271370 to your computer and use it in GitHub Desktop.
Save qmx/271370 to your computer and use it in GitHub Desktop.
git clone --bare current_repo new_repo.git
cd new_repo.git && touch git-daemon-export-ok
git-daemon --base-path=.. (parent) --enable=upload-pack --enable=receive-pack
#####
no cliente:
git remote add temporario git://ip_maquina_salvacao/new_repo.git
git fetch temporario
### zilhões de branchs
##### o servidor voltou
vai na maquina-salvação
cd new_repo.git ; git push git@ip:old_repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment