Perform the advice only if the file is into a git repository