开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜