开发者

Is there a way to add to gitignore on the fly?

开发者 https://www.devze.com 2023-04-10 23:55 出处:网络
Is there a way开发者_高级运维 to do this, for example? git ignore file1, file2, file3 You could create a small bash script which would:

Is there a way开发者_高级运维 to do this, for example?

git ignore file1, file2, file3


You could create a small bash script which would:

  • shift for each parameter
until [ -z "$1" ] ; do local aparam="$1" ; ... ; shift ; done
  • call for each one: git update-index --assume-unchanged $aparam

And then define that script as an alias.

0

精彩评论

暂无评论...
验证码 换一张
取 消