我想上一个新克隆的回购切换我的Windows机器上的分支:混帐未经跟踪文件错误
$ git checkout hybridClass
error: Updating the following directories would lose untracked files in it:
Scripts\/
Aborting
我提交的电流:
git commit -m "message"
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
我可以”不像是会找到这些未跟踪文件:
git clean -d -n
(无输出)
我已经在另一台机器上成功签出了这个分支,所以我不确定这里发生了什么。如果这是重复的,我很抱歉;没有一个类似的帖子似乎很合适。
编辑:添加git status
输出
git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
'git status'说什么? –
在工作树的顶层有一个'Scripts \'或'Scripts'目录吗?它包含什么? –
是的;这是我的大多数被跟踪的文件。主要是python和R脚本,以及一些队列管理器批处理作业脚本和输出文件。在提交之前,所有事情都是用'git add .'进行的,而不是在.gitignore中。 – mnosefish