error: failed to push some refs to ‘https://github.com/466879168/Article.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.
然后git reset 最新版本号 然后add commit -m push之后就OK了
2. 使用git reset –soft
3. 使用git reset –mixed
三者区别:
原文:https://www.cnblogs.com/my466879168/p/12960690.html