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 6240527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:35:11+00:00 2026-05-24T11:35:11+00:00

Is it possible to prevent the web.config file from being committed when doing an

  • 0

Is it possible to prevent the web.config file from being committed when doing an SVN commit? I have the following SVN Global ignore pattern set, but it still doesn’t prevent it. If I replace “*.config” with “web.config” it still doesn’t prevent it.

http://screencast.com/t/fLKoZhYykYG

Global ignore pattern:

*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store */bin */obj bin obj aspnet_client *.tmp */legacy legacy *.suo *.user *.config

=====================

Simple Answer (even though the utility below is very good):

Right click the Web.config file, and choose “Delete and Add to Ignore List”. The icon on the file will turn into a red “X”. Then commit the change. It will not delete the physical file, but it’ll delete it from SVN so it won’t commit anymore.

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-05-24T11:35:11+00:00Added an answer on May 24, 2026 at 11:35 am

    The Global ignore is really for file types you don’t want in your repository, so you don’t accidentally add them. That’s why they’re all suffixes. Plus, they’re only local for that one machine, so there’s no way to really enforce it.You can set svn:ignore in each directory and that can be set to specific files or directories you don’t to add.

    Ignores and svn:ignore only work for files that aren’t already in your repository, so you can’t use them if web.config is already there. And, they don’t stop you from purposefully specifying that you want that file in your repository. Basically, a globally ignored file won’t show up with a ? when you do svn status and won’t be added if you do a svn add *. However, you can always do a svn add web.config and it’ll be added to your repository.

    If you really want to make sure it is never added, you can use my pre-commit “Kitchen Sink” hook. This hook script does a lot of different tasks, and one thing it can do is to allow you to ban files based upon Glob or Regex patterns. If someone does an svn add web.config, and tries to commit it, this pre-commit hook will prohibit the transaction.

    I’ve recently rewrote the script, and you can download it and give it a try. You’ll need Perl, but I’ve written the script not to require any optional modules, so installation is pretty simple. If you’re on a Unix system, Perl as old as 5.8 should work fine. On Windows, you can download ActiveState Perl or Strawberry Perl and the pre-commit hook will run with no problems.

    I use the hook script to prevent users from adding in all the various VisualStudio user files, or the bin/obj and bin/release directories. I also prevent someone adding in a /target directory. It also can be used to allow users to create a tag, but prevent any editing of them.

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

Sidebar

Related Questions

Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e.
Is is possible to prevent Wget from making an output file when there is
Is it possible to prevent a newer SVN client (say 1.6) from automatically upgrading
Does anyone know if it is possible to prevent a work item from being
In asp.net, c# web applciation, is it possible to prevent bots from accessing a
Is it possible to prevent opera mouse gestures for right button? I have web
Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified?
Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that
Is it possible to prevent user from writing letters to a textbox (i.e. force
Very straightforward: Is it possible to prevent the browser from scrolling when a user

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.