Step 1: First create a .git ignore document
$ touch .gitignore

Step 2: add the files to be untracked in .gitignore
$ nano .gitignore  (to access the file and edit)

Simply add the file name and its directory.

Step 3: Delete the file from .git tracking

$ git rm  --cached filename

Step 4: Add and Commit your changes

© Toffy Digital 2015 Powered by Toffy Digital