Git push = > error: failed to push some refs to

1. An error was reported when the normal git pull updated project was modified and submitted for push
refs/heads/feature-activity affafce3303eca7d3efa75c9e7be516a6807865c refs/heads/feature-activity 067412f9c6c59c1772209c2872bcc7a4a03cf96c
failed to push. Please check: git status
error: failed to push some refs to "git@XXXXXXXXXX/tryitzone.git"
2. Baidu failed to search for many solutions
3. After thinking about it, I suspect that the inconsistency between the local commit id and the official library commit id may lead to the submission failure
4. Check the git command to find the difference between git fetch; git pull
5. Solve:

git fetch git pull =>   =>  git add .  =>  git commit =>  git  push  
git fetch merge commit idcommit id
git pull merge  commit id
git pull = git fetch + merge to local

not having a solid foundation

Mar.12,2021

then you know what else you're asking.

Menu