Skip to content

Instantly share code, notes, and snippets.

@Yougigun
Last active July 13, 2020 12:04
Show Gist options
  • Save Yougigun/62be433c528c9c4ae430844358c0f14e to your computer and use it in GitHub Desktop.
Save Yougigun/62be433c528c9c4ae430844358c0f14e to your computer and use it in GitHub Desktop.
# creat branch
git branch <branch name>
# delete a branch (not merge yet)
git branch -d <brannch name>
# delete a branch( no matter)
git branch -D <branch name>
# swithc to the branch
git checkout <branch nane>
# create the branch and swithc to the one
git checkout -b <branch name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment