Problem
If vuh trying to check git diff with directory (or file) that not represented in main branch yet 'git diff' command will throw an error.
Possible solution
Before checking git diff check if directory/file represented in main branch. If not represented in main branch, but exists in history locally, so consider that there is a git diff.