How to “unversion” a file in either svn and/or git

前端 未结 15 1341
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 19:58

It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files).

If I commit this file, I

15条回答
  •  猫巷女王i
    2020-12-22 20:26

    I there f I choose to never commit the file, I always have a "dirty" checkout - I am unhappy.

    With regard to this particular point, you might want to .gitignore the file as other have suggested, or to use a scheme like the one described in this answer of mine.

提交回复
热议问题