locked
Don't allow web.config to change on check in / out RRS feed

  • Question

  • User113730038 posted

    What I would like to do if at all possible is when i check in (GIT) i don't want to push or pull a web.config.  Is there a way to keep this from changing?  The issue is our application works for multiple customers and we put the customer in the config file so if a team member is working on customer A and I with customer B we don't have to keep modifying the config.  

    Wednesday, May 1, 2019 1:12 PM

Answers

  • User475983607 posted

    Add the Web.Config to the ignore file list (.gitignore). 

    If you are using Visual Studio GIT, the exclude list is located in the Team Explorer ->Settings -> Repository Settings.  Otherwise consult the GIT/Code Editor documentation for whatever version you are using to find the file.

    https://help.github.com/en/articles/ignoring-files

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 1, 2019 1:42 PM

All replies

  • User475983607 posted

    Add the Web.Config to the ignore file list (.gitignore). 

    If you are using Visual Studio GIT, the exclude list is located in the Team Explorer ->Settings -> Repository Settings.  Otherwise consult the GIT/Code Editor documentation for whatever version you are using to find the file.

    https://help.github.com/en/articles/ignoring-files

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 1, 2019 1:42 PM
  • User113730038 posted

    Wow that was too simple and Thanks!

    Wednesday, May 1, 2019 4:35 PM