Added sudo to the git commands to see if they make a difference