git remote repo

Posted by Jerzy Seweryn on
# login to remote server
ssh [email protected]_SERVER

# once logged in
mkdir example.git
cd example.git
git --bare init

#local host
mkdir example
cd example
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin [email protected]_SERVER:example.git
git push origin master