Table of Content
Push git to server repo
But you want a server? There are some git services.
1$ git remote add origin ssh://.......
Then every time when your local code are ready to push to the others:
1$ git push origin master
Or use self hosted git service
- You need a server, or VPS
- SSH access
- Setup Git repo
We have used git init
to make the current folder a git managed repo, with all the git controlling files put inside a .git
directory. When we are creating our now git repo for others to use, we just want those git controlling files by using the --bare
option.
Git is something powerful yet not easy to learn. Here are more resources to help you get started.
What’s next? We’re going to take a look at “Deploying options”.