我正在使用Github GUI for windows,我只有主人,没有更多的分支,我上次提交无法同步。我在想revert
命令不取消提交,但我错了,现在在项目文件夹gitbash我用git status
命令,这是结果Github for windows同步失败
$ git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
bash: command substitution: line 1: syntax error near unexpected token `)'
bash: command substitution: line 1: `__git_ps1)'
我认为这个问题是我以前在提交说明中的特殊字符。
领先对手2次的提交,一个是我原来的承诺,一个是它的复归。
我该如何解决问题?
我也联系了support @ github;
- 打开资源管理器在 地址栏
- (即任何文件夹),并且类型
%LocalAppData%
删除GitHub的文件夹 - 在相同的地址栏中键入
%AppData%
- 删除GitHub的文件夹中有太
但没有工作!
更改提交消息? https://help.github.com/articles/changing-a-commit-message/ – Randy
如果一个是最初的,另一个是它的恢复,只是喋喋不休,重新开始? – DevDonkey
@Randy我改变了提交信息,但再次同样的问题 –