If the current directory is a git directory, execute command locally otherwise globally
If the current directory is a git directory, execute command locally otherwise globally