Last active
August 28, 2020 09:09
-
-
Save rashid327/a52f9972bf8772fa19eec5a41f2bd38c to your computer and use it in GitHub Desktop.
git checkout
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
Usage: | |
# Checkout an existing branch | |
$ git checkout <branch_name> | |
# Checkout and create a new branch with that name | |
$ git checkout -b <new_branch> | |
In Practice: | |
# Switching to branch 'new_feature' | |
$ git checkout new_feature | |
Switched to branch 'new_feature' | |
# Creating and switching to branch 'staging' | |
$ git checkout -b staging | |
Switched to a new branch 'staging' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment