updated git commands to change to the directory before executing the git commands