We are using Gerrit for our Git repository. On a project that has been active for several months, we are suddenly unable to push any changes. When we execute git pus
This generally happens when time of commit and push is different and which ultimately creates a mismatch between both the trees. Given a remote branch upstream and local branch foo
Firstly throw away all the uncommitted changes using
git reset --hard foo
Then track the remote branch using
git branch --set-upstream-to=upstream/foo
And finally
git pull