[Git] 取消追蹤檔案(但是保留檔案)

Step1:

將欲取消追蹤的檔案加入.gitignore

Step2:

在repo中刪除該檔案:

git rm -r --cached .
git commit -m "Untrack and delete filename in repo."

Step3:

push到遠端

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *