Difference between revisions of "How to commit to remote branch"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
hint: Updates were rejected because [[the tip of your current branch is behind]] | hint: Updates were rejected because [[the tip of your current branch is behind]] | ||
hint: its remote counterpart. Integrate the remote changes (e.g. | hint: its remote counterpart. Integrate the remote changes (e.g. | ||
− | hint: 'git pull ...') before pushing again. | + | hint: '[[git pull]] ...') before pushing again. |
hint: See the 'Note about [[fast-forwards]]' in '[[git push --help]]' for details. | hint: See the 'Note about [[fast-forwards]]' in '[[git push --help]]' for details. | ||
Revision as of 07:34, 24 November 2022
git push origin HEAD:your-name-of-remote-branch Enumerating objects: 21, done. Counting objects: 100% (21/21), done. Delta compression using up to 8 threads Compressing objects: 100% (11/11), done. Writing objects: 100% (11/11), 5.48 KiB | 801.00 KiB/s, done. Total 11 (delta 9), reused 0 (delta 0), pack-reused 0 remote: remote: View merge request for your-name-of-remote-branch: remote: https://gitlab.com/your-project/your-app/-/merge_requests/2913 remote: To gitlab.com:your-project/your-app.git 7caef6a60..f942d7435 HEAD -> your-name-of-remote-branch
! [rejected] HEAD -> your-branch (non-fast-forward) error: failed to push some refs to 'gitlab.com:your-project/your-app.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Related
See also
Advertising: