Answers for "github checkout"

0

github checkout

# Open/checkout a previous branch
git checkout <existing-branch>

# Open/checkout a previous commit
git checkout <commit> [when commit is not a branch name

# Create a new branch from current branch
git checkout -b <new-branch>

# Create a new branch from existing-branch
git checkout -b <new-branch> <existing-branch>

# Go/Checkout to last commit or branch reset
git checkout .
Posted by: Guest on March-28-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language