X

Setup a new GIT repository

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
test:
Disqus Comments Loading...