Github 桌面 - 未显示更改
Github Desktop - Not showing changes
基本上我在 Notepad++ 中更改了一些文件,但它不会显示在 Github 中 Windows。
我试过重新安装、重启电脑并不断地重新克隆到我电脑上的不同部分。
似乎什么都做不了
如果您有忽略这些更改的 .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"
所有这些都按照命令行的预期工作。
OP Shiny adds :
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
,只是为了验证它在那里工作。
将文件保存在 vscode 中,然后尝试在 github 桌面上查看更改,您也许可以看到这些更改。如果问题仍然存在,请确保重新安装 git 和 git 集线器。
基本上我在 Notepad++ 中更改了一些文件,但它不会显示在 Github 中 Windows。
我试过重新安装、重启电脑并不断地重新克隆到我电脑上的不同部分。
似乎什么都做不了
如果您有忽略这些更改的 .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"
所有这些都按照命令行的预期工作。
OP Shiny adds
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
,只是为了验证它在那里工作。
将文件保存在 vscode 中,然后尝试在 github 桌面上查看更改,您也许可以看到这些更改。如果问题仍然存在,请确保重新安装 git 和 git 集线器。