refactor git command lines to support windows