Not surprising the ui is not very friendly and getting code in and out when you are not inside the AWS walled garden (need AWS keys) really restricted it
git clone https://git-codecommit.us-east-2.amazonaws.com/v1/repos/foobar
clones a repository named "foobar" in the namespace of the currently logged-in user. So it can give you completely different results with different credentials.