Category Archives: GIT

.gitignore – Ignoring files and folders in GIT

I was using a GIT GUI today to add my ignores to the .gitignore file and couldn’t see an option on adding folders, so here’s a 10 second reminder on how to create a .gitignore by hand…

So, if you need to ignore files and/or folders in GIT simply create a .gitignore text file in the root of your repository and enter the files/folders in the following fashion

/StockControl.suo
/StockControl/bin

where the .suo is a file and bin is a folder.

Hence the format is

/<folder_path>/<filename>
/<folder_path>