Deepankar Bajpeyi
Deepankar Bajpeyi

Reputation: 5859

Git : Pushing to a modified repository

I was working on a project that I had cloned from gitHub, but while I was making changes to my copy, someone already pushed changes to the remote repo.
What should I do now ? How do I push my changes to the remote repo?

I am new to gitHub and git .

Thanks

Upvotes: 0

Views: 48

Answers (1)

Gaurav Agarwal
Gaurav Agarwal

Reputation: 14843

Do a git pull --rebase to pull in the changes from the remote repo. Then you can push your changes to the remote repo, provided you do not get a merge conflict.

Upvotes: 1

Related Questions