Automatic shelve before pulling in Mercurial (with TortoiseHG)?

前端 未结 4 1968
别那么骄傲
别那么骄傲 2021-01-20 16:27

I have some changed files I don\'t want to commit (e.g. web.config). Before I pull and update to new changesets, I have to shelve them. After the pull & update, I have

4条回答
  •  不要未来只要你来
    2021-01-20 17:17

    I'd suggest something else: instead of always shelving and unshelving, you could use two different config files: one which is part of the repository and contains dummy/example data, and another one which each user really uses locally, which is ignored by Mercurial.

    Check out this answer for a more detailed explanation what I mean.
    The example I'm giving there is for Visual Studio, and I see from your other questions and answers that you're apparently using .net and Visual Studio, so you can just use my example exactly as written.

提交回复
热议问题