Fixing the “protocol error: bad pack header” error in git

When trying to push in git, you might get the following error message: fatal: internal server error remote: internal server error fatal: protocol error: bad pack header In my case, it was because I pulled a corrupted remote Gerrit repository, and tried to push the corrupted data back to the fixed remote. Everyone who had […]

Automatically tagging people for code review in Gerrit

If your gerrit workflow requires you to automatically tag people, or if you always end up tagging the same people, there is a way to tag people by default for all your commits. To do so, edit .git/config to include the following lines and substitute the email with your colleague’s email: [remote "origin"] … receivepack […]