Re: [問題] Git ignore 整的目錄
※ 引述《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
08/31 15:42, 2F
→
08/31 15:51, , 3F
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
09/01 05:37, 7F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章