Problem: I need somehow to checkout an existing branch of a project that is already cloned locally on my file system without being in that particular folder of this project.
git clone ./foo ./foo-copy git --git-dir=./foo-copy/.git --work-tree=./foo-copy checkout branch