Requirement: Git branch merge
Git Merge: A branch merge is performed locally with Git Merge, and you want to push it to Gerrit to review the repository. However, when you commit it, you can say:
Git Merge: A branch merge is performed locally with Git Merge, and you want to push it to Gerrit to review the repository. However, when you commit it, you can say:
! [remote rejected] HEAD -> refs/for/dev (no new changes)
No new changes have been made to the system, but the changes are linear. Gerrit will not allow you to submit a review if you don’t have a new commit. If you don’t have a new commit, Gerrit will not allow you to submit a review.
Method 1: When git merge, add the –no-ff parameter to make it a new commit so that it can commit ~ (but the generated Gerrit change does not see the change).
Method 2: Push directly into the remote library without going through Gerrit. (Not recommended)
Read More:
- git push error failed to push some refs to solution
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- [Git] git pull pull remote git push to remote git commit submit reject
- How to Fix GIT Push Error
- Git push you are not allowed to upload merges
- Git push failed, prompt unpack error / unpack failed solution
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- Git solves pull origin error: the following untracked working tree files would be rewritten by merge
- Resolving fatal: reusing to merge unrelated histories in Git
- GitHub upload failed: git push error: failed to push some refs to exception handling
- You are not allowed to upload merges in Git push
- Error: You have not concluded your merge (MERGE_HEAD exists)
- gerrit error: missing Change-Id in commit message footer
- You have not concluded your merge (MERGE_HEAD exists)
- Git push “fatal: Authentication failed ”
- Android Cannot merge new index 67208 into a non-jumbo instruction
- Error report after solving git push origin master
- How to solve the problem of “please enter a commit message to explain why this merge is necessary” when git merges branches?
- Error: failed to push some refs to ‘xxx’
- Please specify which branch you want to merge with