Is there a way to make TortoiseSVN temporarily ignore versioned files?

后端 未结 3 581
后悔当初
后悔当初 2021-01-07 01:33

We have certain configuration files which we want to be in version control as they specify project\'s default settings: search path, conditional defines etc. Unfortunately t

3条回答
  •  执念已碎
    2021-01-07 02:06

    Since version 1.5, TortoiseSVN has supported change lists allowing you to group files together within the commit dialog. TortoiseSVN provides one special change list, called ignore-on-commit, that "is used to mark versioned files which you almost never want to commit even though they have local changes." See Excluding Items from the Commit List for more.

    To use the ignore-on-commit feature, within the Check for Modifications or Commit dialogs, select one or more files, then on the context menu select change lists >> ignore-on-commit. The result is that those files are now grouped together and when you open the Commit dialog files in the ignore-on-commit group are by default unchecked while all other files are checked. Be aware that once you check in files in a change list, they are removed from that change list; TortoiseSVN assumes the group membership is no longer needed. In this case, though, since you are not checking in items from the ignore-on-commit group, I believe this group will persist indefinitely.

    (I started writing this answer 3+ years after the question was posed with the intention of saying now there is an easy way to do this. But I could not resist doing some checking first. It turns out that the answer I just provided was available as of TortoiseSVN 1.5 which was officially released as of June 2008--thus, my answer was applicable when this question was asked as well.)

提交回复
热议问题