How to “unversion” a file in either svn and/or git

How to “unversion” a file in either svn and/or git

It happens to me all the time. I accidentally version a file, I do not want to be versioned(i.e. developer/machine specific config-files). If I commit this file, I will mess up the paths on all the ot…


How to get rid off “An entity object cannot be referenced by multiple instances of IEntityChangeTracker”?

I have a model in Ado.Net EF. I have a one to many relation and when I want to Add the entities I get the error "An entity object cannot be referenceed by multiple instances of IEntityChangeTracker"…



git - How to ignore a file which is already committed?

Previously, the following was my.gitignore file:... config/database.yml.DS_Store Later I created an app_config.yml file in the config directory and committed it. Now, I realized that I don't need…


Ignore modified(but not committed) files in git?

Can I tell git to ignore files that are modified(deleted) but should not be committed? The situation is that I have a subdirectory in the repo which contains stuff I'm not interested in at all, so I…


How can I stop.gitignore from appearing in the list of untracked files?

I just did a git init on the root of my new project. Then I created a.gitignore file. Now, when I type git status,.gitignore file appears in the list of untracked files. Why is that?…


How to stop tracking and ignore changes to a file in Git?

I have cloned a project that includes some.csproj files. I don't need/like my local csproj files being tracked by Git(or being brought up when creating a patch), but clearly they are needed in the p…


Mercurial ignore file

I'm trying to get Mercurial to ignore a configuration file, but I'm failing to get it working. I have created a repository on my server with hg init and cloned that repository to my computer. I then…


Ignore files that have already been committed to a Git repository

This question already has an answer here: How to make Git “forget” about a file that was tracked but is now in.gitignore? 20 answers I have an already in…


How to make Git “forget” about a file that was tracked but is now in.gitignore?

There is a file that was being tracked by git, but now the file is on the.gitignore list. However, that file keeps showing up in git status after it's edited. How do you force git to completely forge…


mercurial - .hgignore whole directory tree excepting one specific file

Can anyone tell me the.hgignore pattern to track one specific file in a directory and to ignore everything else? I have a "media" directory which contains a "default.png", for obvious purposes, and t…




file git files ignore from untracked remove commit tracking not