0

Summary:

I have created a repository on GitHub, then I push my code to the repository git push --set-upstream http://XXXXXXXXX master, it works! Here is the master branch:

When I use another laptop pull it into local, git clone http://XXXXXXX it works, but the only main branch, not master branch, I don't know why.

Here is the main branch, actually I pull this branch to local:

Here is what I pull in local, no error :

kitty
  • 3
  • 2

1 Answers1

2

It seems like you just need to check out the branch you want to be on.

git fetch
git checkout master
git pull