Why backhub taking only master branch of repositories?

Viewed 101

I have 2 repositories where 1 repository named Web has 4 branches.

The issue when is taking backup i see only main branch data is been backed up. How to backup all the branches data of that repository?

enter image description here

enter image description here

1 Answers

If you copy your git repositories to somewhere else you will have all remote branches and pull requests in there. basically that is all stored in the hidden .git directory which is inside every repository.

The reason why you only see the main branch is because that is the default branch you are currently on.

You can list all branches with git branch -a inside the backup repository. Without being connected to the internet! Because you already have all needed data in the backup.

Now you can git checkout the-other-remote-branch-name to see or use the state of that branch from when the backup was created.

Related