Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,有没有办法做到这一点?
git ignore file1, file2, file3
您可以创建一个小的 bash 脚本,该脚本将:
直到 [ -z "$1" ] ; 做本地 aparam="$1" ; ... ; 转移 ; 完毕
git update-index --assume-unchanged $aparam
然后将该脚本定义为别名。