git push:本地分支和远程分支冲突问题解决

1 failed to push some refs 报错 1git push -u origin main 2To https://github.com/xxxx.git 3 ! [rejected] main -> main (non-fast-forward) 4error: failed to push some refs to 'https://github.com/xxxx.git' 5hint: Updates were rejected because the tip of your current branch is behind 6hint: its remote counterpart. Integrate the remote changes (e.g. 7hint: 'git pull ...') before pushing again. 8hint: See the 'Note about fast-forwards' in 'git push --help' for