I started using git full time for my personal or side projects. Git is so much easier to get running than svn, but still doesn’t have a way to easily sync sandboxes (branches in git speak) after getting up and running like svn. I needed to setup a remote repo to push and pull from. It’s very easy.
Here is the code to do it.
If you don’t have git, then get it.
- Ubuntu: sudo apt-get install git
- OS X:Â http://code.google.com/p/git-osx-installer/
Â
- ssh your_remote_server.com
- cd /var
- mkdir git && mkdir git/your_repo_name.git
- cd git/your_repo_name.git
- git –bare init
On your local machine:
- cd your_local_git_repo
- git remote add origin ssh://your_remote_server.com/var/git/your_repo_name.git
- git push origin master