I'm using gitextensions in visual studio 2010, and apparently I added a bunch of files to my repository which I didnt want to track. I later edited the gitignore file to try to exclude them, but now I realize that this will not remove the files already added which are now part of the gitignore.
I found this discussion on how to remove the files I don't want to track: Ignore files that have already been committed to a Git repository
But, I'd like to see if there is a way to do this same thing using gitextensions, instead of the commandline?
Check the file you're ignoring Take a good look at your structure, and make sure you're trying to ignore the file that isn't already committed to your repository. If it is, remove the file from the repository and try again. This should fix the Gitignore not working issue.
Open Visual Studio and the solution needing an ignore file. From the top menu select Git > Settings. The above will open Visual Studio's Options with Source Control > Git Global Settings selected. From the list on the left select Git Repository Settings and then click the Add button for Ignore file.
gitignore ignores only untracked files. Your files are marked as modified - meaning they were committed in the past, and git now tracks them. To ignore them, you first need to delete them, git rm them, commit and then ignore them.
There is no way to do this in git extensions. Use the command line. It's better and faster anyway. You get bash functionality, command history and many other things you throw out the window when you use an IDE's interface for VCS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With