over 5 years ago

Server site
$ cd /opt/git
$ mkdir project.git
$ cd project.git
$ git --bare init

Project site
$ cd myproject
$ git init
$ git add .
$ git commit -m 'initial commit'
$ git remote add origin [username]@[hostname]:[Dir]
$ git push origin master

Git clone
$ git clone [username]@[hostname]:[Dir]
--Testing
$ cd project
$ echo "Testing add README" > README;
$ git commit -am 'Add the README file'
$ git push origin master

← Build OpenDaylight helium-SR3 on Ubuntu 14.04 Node.js installation with nvm →