最佳答案
如果您有忽略这些更改的 .gitignore
规则,请检查命令行
cd /path/to/my/repo
git check-ignore -v -- afile
可以是本地的.gitignore
,也可以是全局的。
另一种可能性是,如果您在 detached HEAD 中.
检查 git branch
的输出。
最后,再次检查 how to work with a local repo with GitHub Desktop :下面的评论表明:
git status
git add .
git commit -m "add changes"
所有这些都按照命令行的预期工作。
Seems like a bug I need to report to Github, But basically I set my username of my PC to "
{Shiny}
" and it seems if "{}
" is in the path it glitches it out.
这就是为什么我总是建议从更简单的路径开始:C:\git\myrepo
,只是为了验证它在那里工作。
关于Github Desktop - 不显示更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38278591/