Github windows 同步失败

Github for windows sync failure

我正在为 windows 使用 Github GUI,我只有 master 而没有更多的分支,我的最后一次提交无法同步。我在想 revert 命令确实撤消了提交,但我错了,现在通过 gitbash 在项目文件夹上我使用了 git status 命令,这就是结果

$ 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 个提交,一个是我的原始提交,一个是它的还原。

我该如何解决这个问题?

我也联系了支持@github ;

  1. 打开资源管理器(即任何文件夹),然后在 地址栏
  2. 删除 GitHub 文件夹
  3. 在同一地址栏中,键入 %AppData%
  4. 也删除 GitHub 文件夹

但是没有成功!

重置您的 分支 如果您想确保这会起作用;

  1. 再次将存储库克隆到另一个文件夹
  2. 在新的 commit
  3. 中更新您要更改的源
  4. 提交 那些更改
  5. 将这些更改推送到您的存储库

support@github 回复我: 得到 ot %LocalAppData% 之后到 Github 文件夹并删除 PortableGit_****

这解决了我的问题。