Gerrit: combine multiple commits into one “change”

One thing you can do a squash merge to a temporary branch and then post that change for review. git checkout -b feature git commit -m “start feature” … git commit -m “finish feature” git checkout -b feature-review master git merge –squash feature git commit Now your feature-review branch will contain the same diff relative … Read more

Git push remote rejected {change ### closed}

I got the same message. And it was because I have managed to get the same Change-Id for two commits. Maybe due to some cherry-picking or similar between my local branches. Solved by removing the Change-Id from the commit message, a new Id then was added by the commit hook.

Are pull requests part of Git, or a feature of tools like GitHub, Gerrit and Atlassian Stash?

Pull requests are a simple concept that originated when Git was created but has been taken to different levels since. The essence is that you do not have push rights to the repository you want to contribute on, so instead you fork the repository, making your private copy (a clone already does this btw.) and … Read more

Why is git push gerrit HEAD:refs/for/master used instead of git push origin master

The documentation for Gerrit, in particular the “Push changes” section, explains that you push to the “magical refs/for/’branch’ ref using any Git client tool”. The following image is taken from the Intro to Gerrit. When you push to Gerrit, you do git push gerrit HEAD:refs/for/<BRANCH>. This pushes your changes to the staging area (in the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)