git rebase --abortgit
39 commands
Amend the last commit
Cautiongit commit --amendgit commit -am "message"git commit -m "message" -- filesgit commit -m "message"git diff branch1..branch2 -- filegit rebase --continuegit branch branchDelete a local branch
Cautiongit branch -d branchDelete a remote branch
Destructivegit push origin --delete branchDelete all stashes
Destructivegit stash clearDelete remote branches missing locally
Destructivegit push --prune origin 'refs/heads/*:refs/heads/*'Discard all uncommitted changes
Destructivegit reset --hardgit log -i --grep "text"git branch -agit stash listMove commits onto a new base
Cautiongit rebase --onto new_base old_basegit push origin local_branch:remote_branchgit push -u origin branchgit rebase maingit branch -m old_name new_nameReset the branch to a given commit
Destructivegit reset --hard commitgit stash popgit rebase -i HEAD~3git log --oneline --graphgit log --oneline --decorate --all --graphgit log --since "since" --until "until"git diff --stagedgit branch --show-currentgit log -p -- pathgit log -n 10 --author "author"git diffgit log --statgit stash -ugit stashgit diff --stat commitgit reset HEAD~git reset --soft HEAD~2git reset -- files