Git – Push to a new remote server repository
Short reminder to myself on how to create a new server repo and do the initial push to it from a workstation.
On the Server:
1
2
3
cd Repositories
mkdir Project.git
git init –bare
On the Workstation:
1
2
3
4
5
6
cd Project
git init
git add \*
git commit “Initial commit”
git remote add origin username@server.com/disk/shares/repositories/project.git
git push –u origin master
Done.
This post is licensed under CC BY 4.0 by the author.