我開始使用Git和Github上,並與git的狀態命令時,它拋出這樣的:我怎樣才能刪除混帳未跟蹤文件和文件夾
分支主 你的分支上最新與「遙控器/反射/主」。 未跟蹤文件: (使用「混帳添加...」中包括哪些將被提交)
.DS_Store
.Rhistory
.Trash/
.android/
.bash_history
.bash_profile
.bash_profile.swp
.dropbox/
.gitconfig
.oracle_jre_usage/
.rstudio-desktop/
.subversion/
.viminfo
1.Sueña/
AndroidStudioProjects/.DS_Store
Applications/
Desktop/
Downloads/
Library/
nothing added to commit but untracked files present (use "git add" to track)
這是給我像桌面/或Librery目錄名/ ...
我曾嘗試使用git reset - hard,但它不起作用。
如何刪除這些未跟蹤的文件和文件夾,而不會將其從計算機中徹底刪除。
任何幫助,可以理解的提前
感謝
'git rm --cached'這也是重複的。 http://stackoverflow.com/questions/1143796/remove-a-file-from-a-git-repository-without-deleting-it-from-the-local-filesyste –
toshiomagic
謝謝@toshiomagic,但我不工作 –
您問「如何刪除這些未跟蹤的文件和文件夾,而不會將其從計算機上徹底刪除」。如果這不是你的問題,請改變問題。 – toshiomagic