Skip to content

Instantly share code, notes, and snippets.

@kyxap
Last active February 28, 2018 18:24
Show Gist options
  • Save kyxap/f7075ba9d00fd9cb36e18d2574725872 to your computer and use it in GitHub Desktop.
Save kyxap/f7075ba9d00fd9cb36e18d2574725872 to your computer and use it in GitHub Desktop.
My Git Cheat Sheet
  • Delete remote branch: git push origin --delete <branch_name>
  • Delete local branch : git branch -d <branch_name>
  • Uncommit/Delete local commits: git reset --soft HEAD^
  • Chech/View unpushed commits: git log --branches --not --remotes
  • Diff added and uncomited: git diff --cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment