How to tell if a file is git tracked (by shell exit code)?

后端 未结 8 2140
刺人心
刺人心 2020-11-28 17:24

Is there a way to tell if a file is being tracked by running some git command and checking its exit code?

In other words: is git tracking a file?

8条回答
提交回复
热议问题