Reputation: 2089
I downloaded an existing Git Project (instead of cloning it). I have made some changes to the code. Now I want to push the changes to the existing repository.
I saw some examples (Github guide, Stack overflow) but they all assume that remote repository is empty.
In my case, the remote repository is not empty. I want to push just the additional code (diff) on top of a certain branch. Any ideas?
Upvotes: 0
Views: 517
Reputation: 794
I think that easiest way to do it would be cloning existing repository,then checking out the same branch, and then copying files changed in non-git directory to your git project directory, and then commit them.
Upvotes: 1