Skip to content

Instantly share code, notes, and snippets.

@roc26002w
Last active April 18, 2016 08:12
Show Gist options
  • Save roc26002w/46b05ff35047ed4807a48bc692e2d0ef to your computer and use it in GitHub Desktop.
Save roc26002w/46b05ff35047ed4807a48bc692e2d0ef to your computer and use it in GitHub Desktop.

##Git 忽略檔案

##.gitignore

可以在根目錄下加入 .gitignore 檔案,此設定會影響底下的子目錄 也可以在子目錄下加入 .gitignore 檔案,此設定只會影響該目錄下的檔案或file。

如果當已 commit 該檔案後,而想把此檔案移出板控可以下 :
git rm --cached 檔案名稱 移出版控

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment