git – up to date问题!it works !!!
鉴于各大搜索引擎上,搜索得到结果大部分不起作用(花里胡哨),特出此文!
导语:git
之路–up to date问题
作者:变优秀的小白
爱好:美式一定加冰!
QQ群(new): 811792998
话不多说,上shell
-
各种问题场景:
Your branch is up to date with 'origin/feat/xx'
nothing to commit, working tree clean
Branch 'master' set up to track remote branch 'master' from 'origin'
Everything up-to-date
-
解决(亲测有效):
# 项目中删除远程存储库
$ rm -rf .git /
# 项目中git初始haul
$ git init
# 关联git远程仓库
$ git remote add origin https://repository.remote.url 152
# git add&commit&强制push
$ git add .
$ git commit -m “fix/msg”
$ git push -f 原始主机
是不是就解决le呢?😜