我想上一個新克隆的回購切換我的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