Ritam Nemira
Ritam Nemira

Reputation: 4461

How to push working copy to remote server using git

I pulled the project from remote server and i have done some changes to local workig copy, now I need an advice on how to push my working copy of project to local git server. How can I do that?

Upvotes: 0

Views: 843

Answers (1)

Enrico Campidoglio
Enrico Campidoglio

Reputation: 60013

You should add a new remote to your working repository that points to the "local git server". For example you might add a remote called local:

git remote add local git://myserver/myproject.git

Then you can simply push your commits to the local repository:

git commit -m "I've changed this and that"
git push local

Upvotes: 2

Related Questions