Can I 'git commit' a file and ignore its content changes?

前端 未结 4 807
抹茶落季
抹茶落季 2020-11-22 07:17

Every developer on my team has their own local configuration. That configuration information is stored in a file called devtargets.rb which is used in our rake

4条回答
  •  难免孤独
    2020-11-22 07:44

    For IntelliJ IDEA users: If you want to ignore changes for a file (or files) you can move it to different Change Set.

    • Head over to Local Changes (Cmd + 9)
    • Select file(s) you want to ignore
    • F6 to move them to another Change Set

提交回复
热议问题