Our git server will be local, but we want an server where our local repo is also kept online but only used in a push to fashion.
How can one do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add remotes with
git remote add <name> <url>You can then push to a remote with
git push <name> master:masterto push your local master branch to the remote master branch.When you create a repo with
git clonethe remote is namedoriginbut you can create apublicrepository for your online server and push to it withgit push public master:master