Updated git checkout method.