Created
September 5, 2023 14:39
-
-
Save pelavarre/bc6f679a34e804c563f94a5e4d842a3e to your computer and use it in GitHub Desktop.
The 55 Buttons of Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q = git checkout | |
QA = git add | |
QAV = git apply -v p.patch | |
QB = git rev-parse --abbrev-ref HEAD | |
QB0 = git branch | |
QC = git commit | |
QCA = git commit --amend | |
QCAA = git commit --all --amend | |
QCAF = git commit --all --fixup | |
QCAM = git commit --all -m wip | |
QCD = cd $(git rev-parse --show-toplevel) | |
QCF = git commit --fixup | |
QCL = git clean -ffxdq | |
QCO = git checkout | |
QCOH = git checkout HEAD | |
QCP = git cherry-pick | |
QCR = git fetch --prune && git checkout main && git rebase | |
QD = git diff | |
QDA = git describe --always --dirty | |
QDH = git diff HEAD~1 | |
QDNO = git diff --name-only | |
QF = git fetch | |
QFCORB = git fetch --prune && git checkout main && git rebase | |
QG = git grep -i | |
QGE = git grep -i -e P1 -e P2 | |
QGI = git grep | |
QGIE = git grep -e P1 -e P2 | |
QGIL = git grep -l | |
QGL = git grep -i -l | |
QJD = git config user.initials | |
QL = git log --pretty=fuller --no-decorate | |
QL1 = git log --pretty=fuller --no-decorate -1 | |
QLA git log --pretty=fuller --no-decorate --author=jqdoe@example.com | |
QLF = git ls-files | |
QLQ = git log --oneline --no-decorate -14 | |
QLQ0 = git log --oneline --no-decorate | |
QLQ1 = git log --oneline --no-decorate -1 | |
QLS = git log --pretty=fuller --numstat --no-decorate | |
QLV = git log --oneline --decorate -14 | |
QNO = (set -xe; git diff --name-only; git show --pretty= --name-only) | |
QPFWL = echo Control+C to quit && cat - >/dev/null && git push --force-with-lease | |
QR = git revert HEAD | |
QRB = git rebase | |
QRH = echo Control+C to quit && cat - >/dev/null && git reset --hard | |
QRH1 = echo Control+C to quit and cat - >/dev/null && git reset HEAD~1 | |
QRHU = echo Control+C to quit && cat - >/dev/null && git reset --hard @{upstream} | |
QRI = git rebase -i HEAD~3 | |
QRIAS = git rebase -i --autosquash HEAD~3 | |
QRLS = git reflog --numstat | |
QRV = git remote -v | |
QS = git show | |
QSIS = git status --ignored --short | |
QSP = git show --pretty= | |
QSPNO = git show --pretty= --name-only | |
QST = git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment