我是新手,对于Git和Github使用有些困难。我的Git路径看起来像这样:
我无法在code_snippets目录中创建任何文件,只能创建文件夹。当我尝试使用命令
C:\Program Files\Git\code_snippets
,在code_snippets
目录中,我有一个README.md文件。现在我想要做的是像我在观看的教程中看到的那样添加另一个文件,但似乎什么都不起作用。我无法在code_snippets目录中创建任何文件,只能创建文件夹。当我尝试使用命令
git add index.html
时,会出现错误提示index.html did not match any files
。命令git status
显示:On branch master
Your branch is up-to-date with origin
nothing to commit, working tree clean.
我似乎无论怎么做都无法将文件添加到code_snippets目录中。