Skip to content

Instantly share code, notes, and snippets.

@Krasavchik
Last active January 13, 2017 08:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Krasavchik/452d0c58f7e33873d8a4 to your computer and use it in GitHub Desktop.
Save Krasavchik/452d0c58f7e33873d8a4 to your computer and use it in GitHub Desktop.

Create new branch, local and remote

#create local branch
$ git branch <branchName>

#go to local branchName
$ git checkout <branchName>

#create the remote
$ git push origin <branchName>

Delete local branch

git branch -D <branchName>

Delete remote branch

git push origin --delete <branchName>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment