How to configure specific upstream push refspec for Git when used with Gerrit?
问题 I'm setting up Git with Gerrit Code Review and am looking for a way to make the necessary Git commands relatively straightforward for users who might be new to Git. The commands I currently have for starting a new feature branch are essentially (assuming Gerrit is origin ): git checkout baseline git pull git checkout -b work1234 git push -u origin work1234 This starts a new work package work1234 branched from some baseline , and the final push creates the branch in Gerrit and sets the