Just a little blurb from me on how to deal with branches with the "switch" command. I was still used to the "checkout" command.
# show all branches git branch # create local branch from integration, and switch git switch -c integration origin/integration # switch back to the master git switch master # switch to integration git switch integration # remove old local branch v0.0.1 git branch -d v0.0.1
References
- InfoQ - Git 2.23 Adds Switch and Restore Commands
- https://www.infoq.com/news/2019/08/git-2-23-switch-restore/
No comments:
Post a Comment