- 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
Last active
February 28, 2018 18:24
-
-
Save kyxap/f7075ba9d00fd9cb36e18d2574725872 to your computer and use it in GitHub Desktop.
My Git Cheat Sheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment