How to clone all remote branches in git?

By default, git copies all your remote branches whenever you clone, fetch, or pull your remote repository. You can view all your branches using git branch -a command.

Clone, pull or fetch from a remote repository:

List all git branches including remote:

Switch/checkout to a remote branch in local git repository:

Leave a Reply