Currently if there is no copy of the branch referred to by HEAD locally, the git sync command will work but will throw a whole bunch of warnings at you (it won't know whether to check out upstream/main or origin/main for example). So, we should check if there is a copy locally, and check it out if there is not
Fixes #15
Currently if there is no copy of the branch referred to by
HEAD
locally, the git sync command will work but will throw a whole bunch of warnings at you (it won't know whether to check out upstream/main or origin/main for example). So, we should check if there is a copy locally, and check it out if there is not