I have cloned a remote repository on a particular branch as per this: How do I shallow clone a repo on a specific branch? However, now I need to checkout a different branch on this remote repo. How do I do that? This is a self hosted repository on GitLab (if that information is useful? New to Git!)
Edit: I cannot clone the entire repository (probably because it is too large) and I get a GnuTLS recv error (-9) every time I try cloning it. I have tried using the solutions suggested here git clone GnuTLS recv error (-9): A TLS packet with unexpected length was received however they do not seem to work.