且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Git忽略本地删除的文件夹

更新时间:2023-09-25 22:15:40

 git ls-files --deleted -z | git update-index --assume-unchanged -z --stdin

Note that because this is an index-based operation, you cannot set directories to be ignored – only individual files. If upstream ever adds a file inside those directories, you will have to repeat the fix-up.