ignore something in GIT

To ignore a file/folder in your git repo, you have to (1) add it to the gitignore file and (2) remove it from the project archive. This won’t delete it from the working directory.

Add to gitignore

You need to create and edit a file called (dot) .gitignore inside your project folder. Add one line with the relative path of each file you want to ignore. Folder should end with a /(slash). 

Remove from archive

Remove cached versions of the files by running:

git rm —cached -r <filename>

with each file.

Accent theme by Handsome Code

geeky tips, applescripts, and howtos to make your OSX life easier.

view archive