That there, that right there, is a git conflict. Your commit a062f76 - Modify API ref for per-project-user quotas CRUD methods
is modifying lines that remotes/gerrit/master
has also modified.
This stackoverflow answer explains resolving conflicts in git. It is your best link for knowledge, straight-up. But here's my take:
Run git diff
to see what the conflicts are: you'll find lines from HEAD
(theirs) and lines from your commit (ours). Perhaps you will see merged common ancestors
, which I find confusing and unhelpful. Find those lines in your code and fix them up so that the final state is what both parties want the code to do. Be wary because you may be deciding to delete lines that someone else meant to be there, or obfuscate the code. Personally, I prefer to find and talk with the author of the conflicting lines about them, to avoid such problems.
Or, on each of the paths (read: files) affected, you could run git checkout [--theirs|--ours] -- path/to/file
to move that path to a certain point, where theirs
is the HEAD
's last commit to that path and ours
is your last commit. The former says "I don't want my code", and the latter says "I want only my code, no one elses".
Once you're happy, git rebase --continue
should work. You may have to repeat these steps again if another conflict is found.
Reading material
- git-review steps for when you submit a change. Number three mentions
rebase
, which is the one you were on. - The Git book on rebasing
- Stackoverflow on resolving git conflicts