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

前端 未结 15 1334
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  青春惊慌失措
    2020-12-22 20:34

    As far as I know there is no easy way to remove an added file from versioning control in svn once it is committed.

    You will have to save the file somewhere else and delete it from version control. Than copy the backup back again.

    It's a version control system after all... ;)

提交回复
热议问题