Setting up a git repository on Slicehost
2009-12-01 11:47:56
On your slice;
Install git.
sudo apt-get install git-core
Create an empty directory for your repository
mkdir myrepo.git && cd myrepo.git
Initialize git
git init
On your local machine
Create an empty directory for your repository
> mkdir myrepo.git && cd myrepo.git
Initialize git
git init
Add the remote repository as the origin
git remote add origin ssh://server-domain/repo
for my server the above command is
git remote add origin ssh://bulkan-evcimen.com/home/bulkan/src/repo.git
Create a ignore file for the first push
touch .gitignore
Add, commit
git add .gitignore
git commit -m "initial git commit"
Push your repo to the origin on slicehost
git push origin master
That's it. Happy gitting.
