Created
April 14, 2010 07:42
-
-
Save stevebartholomew/365556 to your computer and use it in GitHub Desktop.
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
cd my-project | |
git clone --bare . ../my-project.git | |
scp -r ../my-project.git user@server:/path/to/git-repositories/ | |
git remote add origin user@server:/path/to/git-repositories/my-project.git | |
# then you can do: | |
git push | |
git pull | |
etc etc | |
# For remote branch management | |
gem install grb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's an easier way. This on the server:
Now locally:
No need for grb. To delete a remote branch
git push origin :branch-to-delete
. You don't really need anything else.