Git Ignore a Directory

There is a folder within a project that you don't want to be tracked with git, to do this on a windows computer:

 

1. In the project folder managed by git, make a new file named '.gitignore.' (no quotes, but with periods at both ends -- it will automatically be changed to '.gitignore'

2. Add this bit of text '/foldertoignore/*' (again, no quotes)

3. Save the file

 

All files within that folder should no longer be part of the git project.




Related Posts


Importing Large MySQL Files into PHPMyAdmin

The default file size for uploading mysql dump files into PHPmyadmin is around 2mb. I needed to upload a 160mb file...
Read Post

Communicating Website Design to Developers

The best method of communicating website designs and intent to developers.
Read Post

Flatten a Wordpress Website to HTML and CSS

I recently inherited a whole bunch of wordpress websites for one of my clients -- in fact I think one of the first times it dawned on me that I would have to start working with these sites is when one of them got hacked...
Read Post

Designers Should Just Learn to Code

Of course all of the time spent learning a new piece of software could just be spent learning how to code...
Read Post