![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
星河沧海
以信息对抗熵增
展开
-
Git中Your branch is ahead of ‘origin/master‘ by x commits的解决办法
@[TOC]Git中Your branch is ahead of ‘origin/master’ by x commits的解决办法问题描述:新的全局用户名下,修改原有本地库的代码,上传时遇见的问题提示:这里描述项目中遇到的问题:例如:在Github中修改了用户名,然后在git中重新社设置全局用户名git config --global user.name "new username"然后修改原有的本地库代,可以通过命令git add test.txt提交到暂存区里,但是提交到本地库的时候会原创 2020-08-30 19:19:46 · 1997 阅读 · 0 评论 -
Git无法删除master以外的合并的分支
问题描述:Git无法删除已经合并的分支错误提示fatal: branch name required也无法使用强制删除语句解决方案:git branch --merged |egrep -v “(^*|master|dev)” |xargs --no-run-if-empty git branch -d原创 2020-08-26 18:02:18 · 582 阅读 · 0 评论