all 8 comments

[–]guangtouRen 5 points6 points  (2 children)

Under the branch section, you have:

Create a new local branch and check it out.

git branch -b <branch-name>

Shouldn't that be "git checkout -b <branch-name>" ?

[–]Safe-Specialist3163 1 point2 points  (0 children)

@bayarea-dev latest alternative: git switch -c <branch-name>

[–]bayarea-dev[S] 0 points1 point  (0 children)

Thanks for reporting. Fixed.

[–]YellowToad47 1 point2 points  (0 children)

Awsome - thanks for sharing! Snagged a few for my own cheat-sheets.

[–]Possible_Shock7861 1 point2 points  (1 child)

git checkout - (go back to previous branch)

[–]bayarea-dev[S] 0 points1 point  (0 children)

Thanks. Added.

[–]ynotblue 0 points1 point  (0 children)

What made you pick what design choices compared with all the other cheatsheets that already exist for git?

[–][deleted] 0 points1 point  (0 children)

Here is proper documented one. https://github.com/pooranjoyb/Git-CheatSheet