Login to remote server
[code lang="shell"]
ssh [email protected]_SERVER
[/code]
Once logged in
[code lang="shell"]
mkdir example.git
cd example.git
git --bare init
[/code]
Local host
[code lang="shell"]
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
[/code]
[code lang="shell"]
ssh [email protected]_SERVER
[/code]
Once logged in
[code lang="shell"]
mkdir example.git
cd example.git
git --bare init
[/code]
Local host
[code lang="shell"]
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
[/code]
Brak komentarzy:
Prześlij komentarz