when I am in the commandline, what is the command to display all the branches and also switch from one git branch to another git branch?
I dont want to create a new branch, i just want to switch to an existing branch
listing all branches [non-remote branches]:
git branch
switching to another branch:
git checkout <branch_name>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.