Git - Commands

Apr 28, 2019

git commands that I need and forget.

Create a branch and checkout

git checkout -b branch-name

Push to github

git push origin branch-name

Create and delete tags

Create

$ git tag 0.1.0
$ git push origin --tags

Delete

$ git push --delete origin 0.1.0
$ git tag -d 0.1.0