Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Comments on What is the magit equivalent of git switch branch?
Post
What is the magit equivalent of git switch branch?
+4
−0
What is the magit equivalent of git switch branch
?
I'm particularly interested in the situation where you cloned a repo, and want to checkout a remote branch locally.
From the commandline that usually looks like:
$ git clone repo
$ cd repo
$ git branch -a
remotes/origin/branch
$ git switch branch
Branch 'branch' set up to track remote branch 'branch' from 'origin'
Switched to a new branch 'branch'
1 comment thread