Jun 20, 2011

Bare git

# на сервере
cd ~/
mkdir someproject.git
cd someproject.git
git init --bare ### old version is ### git init-db

# у себя (в директории с сырцами)
git remote add hosting ssh://someusername@somedomain.com:2200/home/someproject.git
git push hosting master

# снова на сервере
$ cd ~/
$ git clone ~/someproject.git

# создание бранча
git checkout -b somebranchname --track hosting/somebranchname

No comments: