git command ======== Show difference -------- On modified file :code:`$ git diff ` On staged file :code:`$ git diff --staged ` Delete branch -------- Delete local branch :code:`$ git branch -D ` Delete remote branch :code:`$ git push --delete ` Tag version -------- Add tag to current submit :code:`$ git tag -a -m ` List all tags :code:`$ git tag -l` Delete local tag :code:`$ git tag -d ` Delete remote tag :code:`$ git push --delete origin ` Remote -------- Set up upstream remote :code:`git remote add upstream https://github.com/repo` Update local repo :code:`git pull upstream ` Push to upstream :code:`git push upstream `