How to set up a remote Git repository
Oct
11

On the remote server:

1
2
3
mkdir repository.git
cd repository.git
git --bare init

On the developer’s machine:

1
2
3
4
5
6
7
8
mkdir cool_app
cd cool_app
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin ssh://user@server:port/full/path/to/repository.git
git push origin master

More…