Victor Lam
Victor Lam

Reputation: 3710

how to ignore a committed file in subversion?

I joined my teammate to a existing project. There is a file I would like to ignore, as I have some changes which only fit my local machine. But seems SVN cannot ignore file which are already committed.

Does anyone have any suggestion if I would like to ignore that committed file in my machine?

I am using Mac.

Thanks all. Happy Thanksgiving. :)

Upvotes: 1

Views: 309

Answers (1)

hhafez
hhafez

Reputation: 39750

move that file to a different directory undersubversion and do not check out the new folder

so for example your source tree looks like

src/project/fileIdontWant
src/project/theRestofMyStuff

Create a new folder in a seperate folder

src/machineSpecific/fileIdontWant
src/project/theRestofMyStuff

Now only check out src/project from now on unless you want src/machineSpecific project

Upvotes: 1

Related Questions