Git

  1. 不再追踪已纳入版本管理的某些文件(但不在服务器删除)?

    Step 1:

    cd into the folder you want to assume is unchanged,

    Step 2:

    You can do either this:

    git update-index --assume-unchanged $(git ls-files | tr '\n' ' ')

    or

    git ls-files | tr '\n' ' ' | xargs git update-index --assume-unchanged

    Although, with either case, file names with spaces will be problematic. If you have those, you can use this:

    git ls-files -z | xargs -0 git update-index --assume-unchanged


本文作者ruleless, 欢迎评论、交流。
转载请务必标注出处: FAQ


«Previous:   C++临时对象

»Next:         mysql命令