Re: [問題] Git ignore 整的目錄

看板LinuxDev作者 (松鼠)時間9年前 (2014/08/31 01:01), 編輯推噓1(106)
留言7則, 4人參與, 最新討論串2/2 (看更多)
※ 引述《wuyanru (虎茅莊布衣)》之銘言: : git status 卻還是跑出來 : http://ppt.cc/IiPn 都是文字訊息,沒必要用圖片吧? 不是每個程式設計師都有良好的視力。 : ---------------------------- : 最後我想將github上的bin、obj、Properties這三個目錄給刪掉 : 只留source code的部份就好。 : 目前的想法是想先將github上的repo給刪了,然後再從新push上去 詳細閱讀 git 文件,你會發現具體運作方式: http://git-scm.com/docs/gitignore 特別留意這段: """ NOTES The purpose of gitignore files is to ensure that certain files not tracked by Git remain untracked. To ignore uncommitted changes in a file that is already tracked, use git update-index {litdd}assume-unchanged. To stop tracking a file that is currently tracked, use git rm --cached. """ : 不過前提是先瞭解ignore真正的用法。還是說有其他更方便的方法呢? 請愛用 .gitignore 產生器: http://www.gitignore.io/ : 不好意思,還是新手,想把一些指令的觀念釐清。 每次都要宣稱是新手,每篇都要提「不好意思」,依據 information theory, 其 redundancy 也太大。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.247.219 ※ 文章網址: http://www.ptt.cc/bbs/LinuxDev/M.1409418089.A.3C5.html

08/31 09:24, , 1F
小問題居然請出了大神
08/31 09:24, 1F

08/31 15:42, , 2F
感謝jserv大 解惑,小弟以後發文廢話會少一點。
08/31 15:42, 2F

08/31 15:51, , 3F
喔對!如果覺得redundancy太大,建議板規規定以後發文不許
08/31 15:51, 3F

08/31 15:52, , 4F
出現新手或不好意思等多餘的字眼,不知如何?
08/31 15:52, 4F

09/01 02:47, , 5F
我想不需要多那些文字獄:)
09/01 02:47, 5F

09/01 05:36, , 6F
我是覺得沒必要規定這個,不過發文的人自己也要注意
09/01 05:36, 6F

09/01 05:37, , 7F
新手不是理由,很多東西man都有寫了
09/01 05:37, 7F
文章代碼(AID): #1K0WDfF5 (LinuxDev)
文章代碼(AID): #1K0WDfF5 (LinuxDev)