Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 143747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:08:39+00:00 2026-05-11T08:08:39+00:00

With TortoiseSVN, I can move a file into the ignore-on-commit changelist, so that when

  • 0

With TortoiseSVN, I can move a file into the ignore-on-commit changelist, so that when I commit a whole tree, changes to that file do not get committed.

Is there a way to do something like that using the svn command-line tool?

EDIT: Thanks for the suggestions to use svn:ignore, but that doesn’t do quite what I was looking for.

svn:ignore affects things like svn add & svn import. It gives it a list of filename patterns to ignore.

I have a file that’s already under source control, but I want to make temporary changes to that file that I don’t want to be committed later on when I commit the whole source tree. I am making a lot of other changes and I could stick a note on my monitor telling me to revert that file before I commit the tree, but it would be nice if svn could automatically skip that file.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:08:40+00:00Added an answer on May 11, 2026 at 8:08 am

    Subversion does not have a built-in ‘do not commit’ / ‘ignore on commit’ feature, as of February 2016 / version 1.9. This answer is a non-ideal command-line workaround

    As the OP states, TortoiseSVN has a built in changelist, ‘ignore-on-commit’, which is automatically excluded from commits. The command-line client does not have this, so you need to use multiple changelists to accomplish this same behavior (with caveats):

    • one for work you want to commit [work]
    • one for things you want to ignore [ignore-on-commit]

    Since there’s precedent with TortoiseSVN, I use ‘ignore-on-commit’ in my examples for the files I don’t want to commit. I’ll use ‘work’ for the files I do, but you could pick any name you wanted.

    First, add all files to a changelist named ‘work’. This must be run from the root of your working copy:

    svn cl work . -R 

    This will add all files in the working copy recursively to the changelist named ‘work’. There is a disadvantage to this – as new files are added to the working copy, you’ll need to specifically add the new files or they won’t be included. Second, if you have to run this again you’ll then need to re-add all of your ‘ignore-on-commit’ files again. Not ideal – you could start maintaining your own ‘ignore’ list in a file as others have done.

    Then, for the files you want to exclude:

    svn cl ignore-on-commit path\to\file-to-ignore 

    Because files can only be in one changelist, running this addition after your previous ‘work’ add will remove the file you want to ignore from the ‘work’ changelist and put it in the ‘ignore-on-commit’ changelist.

    When you’re ready to commit your modified files you do wish to commit, you’d then simply add ‘–cl work’ to your commit:

    svn commit --cl work -m 'message' 

    Here’s what a simple example looks like on my machine:

    D:\workspace\trunk>svn cl work . -R Skipped '.' Skipped 'src' Skipped 'src\conf' A [work] src\conf\db.properties Skipped 'src\java' Skipped 'src\java\com' Skipped 'src\java\com\corp' Skipped 'src\java\com\corp\sample' A [work] src\java\com\corp\sample\Main.java Skipped 'src\java\com\corp\sample\controller' A [work] src\java\com\corp\sample\controller\Controller.java Skipped 'src\java\com\corp\sample\model' A [work] src\java\com\corp\sample\model\Model.java Skipped 'src\java\com\corp\sample\view' A [work] src\java\com\corp\sample\view\View.java Skipped 'src\resource' A [work] src\resource\icon.ico Skipped 'src\test'  D:\workspace\trunk>svn cl ignore-on-commit src\conf\db.properties D [work] src\conf\db.properties A [ignore-on-commit] src\conf\db.properties  D:\workspace\trunk>svn status  --- Changelist 'work':         src\java\com\corp\sample\Main.java         src\java\com\corp\sample\controller\Controller.java         src\java\com\corp\sample\model\Model.java M       src\java\com\corp\sample\view\View.java         src\resource\icon.ico  --- Changelist 'ignore-on-commit': M       src\conf\db.properties  D:\workspace\trunk>svn commit --cl work -m 'fixed refresh issue' Sending        src\java\com\corp\sample\view\View.java Transmitting file data .done Committing transaction... Committed revision 9. 

    An alternative would be to simply add every file you wish to commit to a ‘work’ changelist, and not even maintain an ignore list, but this is a lot of work, too. Really, the only simple, ideal solution is if/when this gets implemented in SVN itself. There’s a longstanding issue about this in the Subversion issue tracker, SVN-2858, in the event this changes in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I can do checkouts, update and such. But when I try to commit changes,
I can write a message when placing a lock on a file, using TortoiseSVN
When I try to commit my changes with TortoiseSVN I am getting the following
How can I ignore the target folder in TortoiseSVN?
Can you advise me the best alternative of TortoiseSVN on Linux? I'm using ArchLinux
TortoiseSVN is nice for the most part, but one thing that blows in a
We are using TortoiseSVN for a project. One file in this project has a
Can anyone recommend a source control tutorial for a test engineer based on TortoiseSVN?
I can setup Subversion server. I can commit change. The only thing I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.