SyntaxFix
Write A Post
Hire A Developer
Questions
You have to install git-extras for this. You can install it in Ubuntu using apt-get,
$ sudo apt-get install git-extras
Then you can use the git ignore command.
$ git ignore file_name