Article
Setup a new GIT repository
March 23, 2014 Updated February 19, 2017 1 min read test
Here is a quick reminder of how to setup a new git repository on your git server and check it out on your client machine.
On The Server
cd /opt/git mkdir newproject.git cd newproject.git git --bare init
On the Client
cd /home/user/projects git clone git@gitserver:/opt/git/newproject.git cd newproject vim README git add . git commit -m 'added new README' git push origin master