Git - git add in a gitignore directory

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-03-16T15:38:24Z Indexed on 2010/03/16 15:41 UTC
Read the original article Hit count: 394

Filed under:
|

If my .gitignore file has tmp\ in it and I do a git add file.test from tmp, Git adds file.test to the repository. If file.test never changes, than this is as good as a one time add to the repository, right? Say for static files that I want to be in version control. You want the file in an initial clone and that's it.

I assume file.test doesn't get tracked, so if there are updates, Git doesn't see it as modified?

© Stack Overflow or respective owner

Related posts about git

Related posts about gitignore