Use popd/pushd to change paths, don't cd to .git folder