Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I .ignore files with Git GUI?

Tags:

I have created a .gitignore file in the folder with the .git folder, but I still get the files I'm trying to ignore when doing a rescan of the repository.

This is the content of the file.

# Ignored files
*.suo 
*.user 
bin 
obj 
*.pdb 
*.cache 
*_svn 
*.svn 
*.suo 
*.user 
*.build-res 
TestResults 
_ReSharper*

What am I doing wrong? where is the file suppose to be located?

like image 817
Darkmage Avatar asked Feb 23 '10 14:02

Darkmage


People also ask

How do I ignore files in Git GUI?

To ignore files in your repository with GitHub Desktop go to the Repository menu and select Repository Settings… With the Repository Settings pop-up open, click the Ignored Files tab. Here you will be able to add file names, directory names, or patterns for Git to ignore in your repository.

How do I ignore a .class file in Git GUI?

You need to make sure the file you are still seeing are not currently committed or staged. If you remove them ( git rm or git rm --cached ), and then add them as private file, then they will be ignored.

How do I ignore a specific folder in git?

gitignore with contents /bin will make it ignore files or folders named bin in th esame folder as the . gitignore . If you want to specify that bin should be a folder, then put a trailing slash. To sum it up, using /bin/ will ignore only the bin folder in the same folder of the .


1 Answers

You need to make sure the file you are still seeing are not currently committed or staged.

If you remove them (git rm or git rm --cached), and then add them as private file, then they will be ignored.

like image 161
VonC Avatar answered Oct 12 '22 10:10

VonC