我們都知道,在 .ingore 加入已經進入版控的檔案,沒辦法讓文件進入 Git 版控後忽略後續變更但專案裡常…
先前查到的方式都是把檔案刪除掉,雖然 Local 會留著,但 Remote 卻會不見
那並不符合我的需求,最近又遇到類似的問題,我把我的需求告訴 ChatGPT,
鬼打牆了幾次之後他終於給了我正確解答
使用下面指令,可以讓文件進入 Git 版控後忽略後續變更
git update-index --assume-unchanged path/to/config.py使用下面指令可以讓 Git 恢復偵測指定檔案的異動
git update-index --no-assume-unchanged path/to/config.py
71 Games, 22 Wins… those are promising numbers! I’m always on the hunt for new games. Let’s take a look at 71games22wins and see if I can add to that win count!