Window 使用Git教學
Sunday, January 22, 2017
使用.gitignore忽略檔案
有時候有些檔案想忽略不想上傳,例如寫c/c++的 .o檔,這時候就在工作目錄下新增
.gitignore
來忽略檔案
以上述例子來說
我想忽略所有.html還有css資料夾的檔案我可以修改.gitignore文件如下
*.html
css/
下列這個網址提供一些gitignore可以知道什麼東西可以不用進版控:
https://github.com/github/gitignore
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment