Create utility functions for adding a dry-run flag and checking the environment for a dry run mode. PR Close #41387
GitClient