Git/Github的.gitignore功能(忽略文件)

忽略文件的原則是:

1. 忽略系統自動產生的文件,如縮圖、暫存檔
2. 忽略編譯產生的中間文件、可執行文件等
3. 忽略帶有敏感信息的配置文件,如API Key文件。

如何使用

在根目錄中建立.gitignore檔案文件中輸入不想被傳至GitHub的附檔名如:*.ppt
*.doc
*.pdf
*.exe

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store