views:

472

answers:

2

I'm trying to get started using git and tortoise-git.

Is there a way to hide files that should never be tracked completely? Currently, all temporary build files are in the same "Not Versioned" list as new files when I commit a change.

+10  A: 

You need to investigate .gitignore files.

git help gitignore
Charles Bailey
+5  A: 

Create a text file called .gitignore in your root folder and add lines like the following to exclude files:

*.obj
test.c

Then add .gitignore to your git repository and commit:

$ git add .gitignore
$ git commit .gitignore
lemonad
Thanks!As a side note, the paths can be selected in tortoise-git's commit window, and be copied to lcipboard, which makes it easy t obase them into the .gitignore
peterchen