I made a local buildroot repository in my gitlab about 1 year ago. I don't remember what I did at that time but I think I followed steps to import from URL.
Since my repo does not have new updated branches, I want to bring upstream branches/updates. And I did some search and found following procedures as recommended.
1. Cloned buildroot from my local gitlab.
$ git clone git@gitlab.com:mybuild/buildroot.git
2. Added upstream branch for the remote.
$ git remove add upstream https://github.com/buildroot/buildroot.git
3. Fetch the branches from the upstream repository
$ git fetch upstream
4. Default branch was the master. But want to make sure.
$ git checout master
5. Merge the upstream branch into my local branch.
And this is only for bring latest branches from upstream to my local branch.
So, there was no conflict at all.
$ git merge upstream/master
Then, from the local cloned directory, I was able to see the latest branches.
Now, I removed buildroot directory and cloned my local repo again using the step 1 command above. Then, I cannot see the latest branch.
Somehow, the branches I fetched from upstream is not pushed to my local repo. I thought git merge upstream/master will update my local repo but it didn't.