tags:

views:

184

answers:

1

My company is a small one where we would be using Git for version control. The main server will be local. But we do want an server where our local repo is kept online to give access to our clients so that they can have assurance that we are doing the right thing and to allow them to check out from there if needed.

So if I simply wish to push only to the one outside, and will never pull from it, what is the best Git way to do this?

+5  A: 

You can add remotes with git remote add <name> <url>

You can then push to a remote with git push <name> master:master to push your local master branch to the remote master branch.

When you create a repo with git clone the remote is named origin but you can create a public repository for your online server and push to it with git push public master:master

Grégoire Cachet