为什么 Git 忽略了我以 .chm 结尾的帮助文件?
Why is Git ignoring my Help file that ends with .chm?
我 运行 使用 Windows 8.1 x64,使用 Git Bash,使用 C# 开发并使用 GitHub 作为我的存储库。
我创建了一个帮助文件 MyHelp.chm,并将其放在自己的目录中(帮助)。当我进入..
$git状态
我在各个目录中看到了我的 .cs 源代码文件,但是我没有看到我创建的帮助目录,也没有看到该目录中的 MyHelp.chm 文件。进入..
$ git 添加 Help/MyHelp.chm
- 似乎没有导致任何错误消息,但它似乎没有做任何事情。当我进入
$git状态
同样,我仍然没有在要提交的列表中看到 MyHelp.chm。
我检查了各种 .git忽略位置 - 我没有看到任何会影响 .chm 文件的东西!
以下是新存储库上的一系列命令:
> git init so
Initialized empty Git repository in /path/so/.git/
> cd so
> mkdir Help
> touch Help/MyHelp.chm
> git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
Help/
nothing added to commit but untracked files present (use "git add" to track)
> git add Help/MyHelp.chm
> git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Help/MyHelp.chm
>
到目前为止,您在工作流程中有什么不寻常的地方吗?
您在 "various locations" 中检查了 .gitignore
。那是要检查的其他位置吗?
PS:检查是在 shell 命令行上进行的,因此您的版本可能有更多细节。
我 运行 使用 Windows 8.1 x64,使用 Git Bash,使用 C# 开发并使用 GitHub 作为我的存储库。
我创建了一个帮助文件 MyHelp.chm,并将其放在自己的目录中(帮助)。当我进入.. $git状态
我在各个目录中看到了我的 .cs 源代码文件,但是我没有看到我创建的帮助目录,也没有看到该目录中的 MyHelp.chm 文件。进入.. $ git 添加 Help/MyHelp.chm - 似乎没有导致任何错误消息,但它似乎没有做任何事情。当我进入 $git状态 同样,我仍然没有在要提交的列表中看到 MyHelp.chm。
我检查了各种 .git忽略位置 - 我没有看到任何会影响 .chm 文件的东西!
以下是新存储库上的一系列命令:
> git init so
Initialized empty Git repository in /path/so/.git/
> cd so
> mkdir Help
> touch Help/MyHelp.chm
> git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
Help/
nothing added to commit but untracked files present (use "git add" to track)
> git add Help/MyHelp.chm
> git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Help/MyHelp.chm
>
到目前为止,您在工作流程中有什么不寻常的地方吗?
您在 "various locations" 中检查了 .gitignore
。那是要检查的其他位置吗?
PS:检查是在 shell 命令行上进行的,因此您的版本可能有更多细节。