Created
March 5, 2023 21:31
-
-
Save aandvalenzuela/9ba7071e1140c763511df880f286704b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # List all branches in the repository | |
| git branch | |
| # Switch to a branch | |
| git switch branch-name | |
| # Create and switch to a new branch | |
| git switch -c new-branch-name | |
| # In contrast to the deprecated command | |
| git checkout -b new-branch-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment