How to check if a file is tracked and if not, then track it?
Answer
There are different ways to check whether a file is tracked or not:
git ls-files-> exit code of 0 means it's trackedgit blame...
There are different ways to check whether a file is tracked or not:
git ls-files -> exit code of 0 means it's trackedgit blame
...