I've a situation where i want to define .gitignore file at user level. I would like to use both .gitignore repository as well as user level. Repository level is the same used by every one and user level is to add/remove files from tracking only for my machine.
We've a repository in which i work on a particular directory, so i want to push changes only for that directory. I don't want to accidently push changes for files outside that directory.
I'm looking solution for
- Add/Remove files from tracking in user level .gitignore file?
- In user level .gitignore, our path should be relative or absolute?
- Is it possible to add a directory in .gitignore I only want to keep track?