Git ignore deleted files

Posted by Petah on Stack Overflow See other posts from Stack Overflow or by Petah
Published on 2010-04-27T02:35:49Z Indexed on 2010/04/27 2:43 UTC
Read the original article Hit count: 414

Filed under:
|
|
|

Ok heres my situation.

I have a website project that has more than 50,000 unimportant files (to development) in some directories.

/website.com/files/1.txt
/website.com/files/2.txt
/website.com/files/3.txt
/website.com/files/etc.txt

The stuff in /files is already in the repo. I want to delete all the files in /files on my local copy but I want git to ignore it so it doesn't delete them when I do a pull on the web server.

Any ideas?

© Stack Overflow or respective owner

Related posts about git

Related posts about ignore