I created a GitHub fork of `efabless/caravel_user_...
# caravel
h
I created a GitHub fork of
efabless/caravel_user_project_analog
, but I forgot to select all branches, now I can not switch to the proper mpw tag. Is there some GitHub or
git
magic that I can still add the branches to my fork?
m
There may be more efficient ways, but from your local EWS repo, you might try:
Copy code
$ git remote -v
to verify your current remote definitions. I expect you only have
origin
defined, and it points to your github fork.
Copy code
$ git remote add upstream <https://github.com/efabless/caravel_user_project_analog.git>
$ git remote -v
This should show 2 remotes defined.
Copy code
$ git fetch upstream
This should fetch all efabless branches which you should be able to see with
Copy code
$ git branch -r
Then you can checkout whatever branch you want (I hope), like this:
Copy code
$ git checkout upstream/mpw-8a
h
Thanks @Mitch Bailey I tried it, switching branches worked, but then I got confused how to merge branches, etc. In the end I just started all over with a new repo.
m
That’s what I usually do, too.
f
@Harald Pretl I use gitk to keep track of all branches etc.