Git commands improved in code for paths