From 7483f7c11ca1c9d26e482c49c8c390d74b69a222 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Sat, 21 Oct 2023 16:41:03 +0200 Subject: [PATCH] dry: First draft --- doc/git-a/alias.txt | 1 + doc/git-aa/alias.txt | 1 + doc/git-add-alias/alias.sh | 1 + doc/git-add-cached/alias.sh | 1 + doc/git-add-deleted/alias.sh | 1 + doc/git-add-ignored/alias.sh | 1 + doc/git-add-killed/alias.sh | 1 + doc/git-add-modified/alias.sh | 1 + doc/git-add-others/alias.sh | 1 + doc/git-add-stage/alias.sh | 1 + doc/git-add-unmerged/alias.sh | 1 + doc/git-alias/alias.sh | 1 + doc/git-aliases/alias.sh | 1 + doc/git-ap/alias.txt | 1 + doc/git-archive/alias.sh | 1 + doc/git-assume-all/alias.sh | 1 + doc/git-assume/alias.txt | 1 + doc/git-assumed/alias.sh | 1 + doc/git-au/alias.txt | 1 + doc/git-b/alias.txt | 1 + doc/git-bed/alias.txt | 1 + doc/git-bm/alias.txt | 1 + doc/git-bnm/alias.txt | 1 + doc/git-branch-commit-first/alias.sh | 1 + doc/git-branch-commit-last/alias.sh | 1 + doc/git-branch-commit-next/alias.sh | 1 + doc/git-branch-commit-prev/alias.sh | 1 + doc/git-branches/alias.txt | 1 + doc/git-bsd/alias.sh | 1 + doc/git-bv/alias.txt | 1 + doc/git-bvv/alias.txt | 1 + doc/git-c/alias.txt | 1 + doc/git-ca/alias.txt | 1 + doc/git-caa/alias.txt | 1 + doc/git-caam/alias.txt | 1 + doc/git-caane/alias.txt | 1 + doc/git-cam/alias.txt | 1 + doc/git-cane/alias.txt | 1 + doc/git-chart/alias.sh | 1 + doc/git-cherry-pick-merge/alias.sh | 1 + doc/git-churn/alias.sh | 1 + doc/git-ci/alias.txt | 1 + doc/git-cleaner/alias.txt | 1 + doc/git-cleanest/alias.txt | 1 + doc/git-cleanout/alias.sh | 1 + doc/git-clone-lean/alias.txt | 1 + doc/git-cloner/alias.txt | 1 + doc/git-cm/alias.txt | 1 + doc/git-co/alias.txt | 1 + doc/git-cob/alias.txt | 1 + doc/git-commit-is-merge/alias.sh | 1 + doc/git-commit-message-key-lines/alias.sh | 1 + doc/git-commit-parents/alias.sh | 1 + doc/git-cong/alias.txt | 1 + doc/git-cp/alias.txt | 1 + doc/git-cpa/alias.txt | 1 + doc/git-cpc/alias.txt | 1 + doc/git-cpn/alias.txt | 1 + doc/git-cpnx/alias.txt | 1 + doc/git-current-branch/alias.txt | 1 + doc/git-cvs-e/alias.txt | 1 + doc/git-cvs-i/alias.txt | 1 + doc/git-d/alias.txt | 1 + doc/git-dc/alias.txt | 1 + doc/git-dd/alias.txt | 1 + doc/git-debug/alias.sh | 1 + doc/git-default-branch/alias.txt | 1 + doc/git-diff-all/alias.sh | 1 + doc/git-diff-changes/alias.txt | 1 + doc/git-diff-chunk/alias.sh | 1 + doc/git-diff-deep/alias.txt | 1 + doc/git-diff-staged/alias.txt | 1 + doc/git-diff-stat/alias.txt | 1 + doc/git-discard/alias.txt | 1 + doc/git-ds/alias.txt | 1 + doc/git-dw/alias.txt | 1 + doc/git-edit-cached/alias.sh | 1 + doc/git-edit-deleted/alias.sh | 1 + doc/git-edit-ignored/alias.sh | 1 + doc/git-edit-killed/alias.sh | 1 + doc/git-edit-modified/alias.sh | 1 + doc/git-edit-others/alias.sh | 1 + doc/git-edit-stage/alias.sh | 1 + doc/git-edit-unmerged/alias.sh | 1 + doc/git-exec/alias.sh | 1 + doc/git-expunge/alias.sh | 1 + doc/git-f/alias.txt | 1 + doc/git-fa/alias.txt | 1 + doc/git-fav/alias.txt | 1 + doc/git-fixup/alias.sh | 1 + doc/git-g/alias.txt | 1 + doc/git-get/alias.sh | 1 + doc/git-gg/alias.txt | 1 + doc/git-gitk-conflict/alias.sh | 1 + doc/git-gitk-history-all/alias.sh | 1 + doc/git-gn/alias.txt | 1 + doc/git-graphviz/alias.sh | 1 + doc/git-grep-ack/alias.txt | 1 + doc/git-grep-all/alias.sh | 1 + doc/git-grep-group/alias.txt | 1 + doc/git-heads/alias.sh | 1 + doc/git-hew-dry-run/alias.sh | 1 + doc/git-hew-local-dry-run/alias.sh | 1 + doc/git-hew-local/alias.sh | 1 + doc/git-hew-remote-dry-run/alias.sh | 1 + doc/git-hew-remote/alias.sh | 1 + doc/git-hew/alias.sh | 1 + doc/git-ignore/alias.sh | 1 + doc/git-inbound/alias.sh | 1 + doc/git-init-empty/alias.sh | 1 + doc/git-initer/alias.txt | 1 + doc/git-intercommit/alias.sh | 1 + doc/git-issues/alias.sh | 1 + doc/git-l/alias.txt | 1 + doc/git-last-tag/alias.txt | 1 + doc/git-last-tagged/alias.sh | 1 + doc/git-lfp/alias.txt | 1 + doc/git-lg/alias.txt | 1 + doc/git-ll/alias.txt | 1 + doc/git-lll/alias.txt | 1 + doc/git-lo/alias.txt | 1 + doc/git-log-1-day/alias.txt | 1 + doc/git-log-1-hour/alias.txt | 1 + doc/git-log-1-month/alias.txt | 1 + doc/git-log-1-week/alias.txt | 1 + doc/git-log-1-year/alias.txt | 1 + doc/git-log-date-first/alias.sh | 1 + doc/git-log-date-last/alias.txt | 1 + doc/git-log-fetched/alias.txt | 1 + doc/git-log-fresh/alias.txt | 1 + doc/git-log-graph/alias.txt | 1 + doc/git-log-list-long/alias.txt | 1 + doc/git-log-list/alias.txt | 1 + doc/git-log-local/alias.txt | 1 + doc/git-log-local/index.md | 3 +++ doc/git-log-my-day/alias.sh | 1 + doc/git-log-my-hour/alias.sh | 1 + doc/git-log-my-month/alias.sh | 1 + doc/git-log-my-week/alias.sh | 1 + doc/git-log-my-year/alias.sh | 1 + doc/git-log-my/alias.sh | 1 + doc/git-log-of-count-and-day-of-week/alias.sh | 1 + doc/git-log-of-count-and-day/alias.sh | 1 + doc/git-log-of-count-and-email/alias.sh | 1 + .../alias.sh | 1 + doc/git-log-of-count-and-format/alias.sh | 1 + doc/git-log-of-count-and-hour-of-day/alias.sh | 1 + doc/git-log-of-count-and-hour/alias.sh | 1 + doc/git-log-of-count-and-month/alias.sh | 1 + .../alias.sh | 1 + doc/git-log-of-count-and-week/alias.sh | 1 + doc/git-log-of-count-and-year/alias.sh | 1 + doc/git-log-of-day-and-count/alias.sh | 1 + doc/git-log-of-day-of-week-and-count/alias.sh | 1 + doc/git-log-of-email-and-count/alias.sh | 1 + .../alias.sh | 1 + doc/git-log-of-format-and-count/alias.sh | 1 + doc/git-log-of-hour-and-count/alias.sh | 1 + doc/git-log-of-hour-of-day-and-count/alias.sh | 1 + doc/git-log-of-month-and-count/alias.sh | 1 + doc/git-log-of-week-and-count/alias.sh | 1 + .../alias.sh | 1 + doc/git-log-of-year-and-count/alias.sh | 1 + doc/git-log-refs/alias.txt | 1 + doc/git-log-timeline/alias.txt | 1 + doc/git-lor/alias.txt | 1 + doc/git-lp/alias.txt | 1 + doc/git-ls/alias.txt | 1 + doc/git-lsd/alias.txt | 1 + doc/git-lsfn/alias.txt | 1 + doc/git-lsio/alias.txt | 1 + doc/git-lto/alias.txt | 1 + doc/git-m/alias.txt | 1 + doc/git-ma/alias.txt | 1 + doc/git-mainly/alias.sh | 1 + doc/git-mc/alias.txt | 1 + doc/git-merge-span-diff/alias.sh | 1 + doc/git-merge-span-difftool/alias.sh | 1 + doc/git-merge-span-log/alias.sh | 1 + doc/git-merge-span/alias.sh | 1 + doc/git-mncnf/alias.txt | 1 + doc/git-move-alias/alias.sh | 1 + doc/git-o/alias.txt | 1 + doc/git-optimizer/alias.sh | 1 + doc/git-orphans/alias.txt | 1 + doc/git-ours/alias.sh | 1 + doc/git-outbound/alias.txt | 1 + doc/git-p/alias.txt | 1 + doc/git-panic/alias.sh | 1 + doc/git-pf/alias.txt | 1 + doc/git-pr/alias.txt | 1 + doc/git-prp/alias.txt | 1 + doc/git-pruner/alias.sh | 1 + doc/git-publish/alias.sh | 1 + doc/git-pull1/alias.sh | 1 + doc/git-push1/alias.sh | 1 + doc/git-pushy/alias.sh | 1 + doc/git-put/alias.sh | 1 + doc/git-rb/alias.txt | 1 + doc/git-rba/alias.txt | 1 + doc/git-rbc/alias.txt | 1 + doc/git-rbi/alias.txt | 1 + doc/git-rbiu/alias.txt | 1 + doc/git-rbs/alias.txt | 1 + doc/git-rebase-branch/alias.sh | 1 + doc/git-rebase-recent/alias.sh | 1 + doc/git-refs-by-date/alias.txt | 1 + doc/git-reincarnate/alias.sh | 1 + doc/git-remote-ref/alias.sh | 1 + doc/git-remotes-prune/alias.sh | 1 + doc/git-remotes-push/alias.sh | 1 + doc/git-repacker/alias.txt | 1 + doc/git-reset-commit-hard-clean/alias.sh | 1 + doc/git-reset-commit-hard/alias.txt | 1 + doc/git-reset-commit/alias.txt | 1 + doc/git-reset-to-pristine/alias.sh | 1 + doc/git-reset-to-upstream/alias.sh | 1 + .../alias.sh | 1 + doc/git-rev-list-all-objects-by-size/alias.sh | 1 + doc/git-rl/alias.txt | 1 + doc/git-rr/alias.txt | 1 + doc/git-rrp/alias.txt | 1 + doc/git-rrs/alias.txt | 1 + doc/git-rru/alias.txt | 1 + doc/git-rv/alias.txt | 1 + doc/git-rvnc/alias.txt | 1 + doc/git-s/alias.txt | 1 + doc/git-sb/alias.txt | 1 + doc/git-search-commits/alias.sh | 1 + doc/git-serve/alias.txt | 1 + doc/git-show-unreachable/alias.sh | 1 + doc/git-sm/alias.txt | 1 + doc/git-sma/alias.txt | 1 + doc/git-smi/alias.txt | 1 + doc/git-sms/alias.txt | 1 + doc/git-smu/alias.txt | 1 + doc/git-smui/alias.txt | 1 + doc/git-smuir/alias.txt | 1 + doc/git-snapshot/alias.sh | 1 + doc/git-ss/alias.txt | 1 + doc/git-ssb/alias.txt | 1 + doc/git-stashes/alias.txt | 1 + doc/git-summary/alias.sh | 26 +++++++++++++++++++ doc/git-svn-b/alias.txt | 1 + doc/git-svn-c/alias.txt | 1 + doc/git-svn-cp/alias.sh | 1 + doc/git-svn-m/alias.txt | 1 + doc/git-tags/alias.txt | 1 + doc/git-theirs/alias.sh | 1 + doc/git-top/alias.txt | 1 + doc/git-topic-base-branch/alias.sh | 1 + doc/git-topic-begin/alias.sh | 1 + doc/git-topic-end/alias.sh | 6 +++++ doc/git-topic-move/alias.sh | 1 + doc/git-topic-sync/alias.sh | 6 +++++ doc/git-track-all-remote-branches/alias.sh | 1 + doc/git-track/alias.sh | 1 + doc/git-unadd/alias.txt | 1 + doc/git-unassume-all/alias.sh | 1 + doc/git-unassume-all/index.md | 2 +- doc/git-unassume/alias.txt | 1 + doc/git-uncommit/alias.txt | 1 + doc/git-undo-commit-hard-clean/alias.sh | 1 + doc/git-undo-commit-hard/alias.txt | 1 + doc/git-undo-commit/alias.txt | 1 + doc/git-undo-to-pristine/alias.sh | 1 + doc/git-undo-to-upstream/alias.sh | 1 + doc/git-unpublish/alias.sh | 1 + doc/git-untrack/alias.sh | 1 + doc/git-unwip/alias.sh | 1 + doc/git-upstream-branch/alias.sh | 1 + doc/git-w/alias.txt | 1 + doc/git-whatis/alias.txt | 1 + doc/git-who/alias.txt | 1 + doc/git-whois/alias.sh | 2 ++ doc/git-wip/alias.sh | 1 + dry.sh | 24 +++++++++++++++++ 277 files changed, 338 insertions(+), 1 deletion(-) create mode 100644 doc/git-a/alias.txt create mode 100644 doc/git-aa/alias.txt create mode 100644 doc/git-add-alias/alias.sh create mode 100644 doc/git-add-cached/alias.sh create mode 100644 doc/git-add-deleted/alias.sh create mode 100644 doc/git-add-ignored/alias.sh create mode 100644 doc/git-add-killed/alias.sh create mode 100644 doc/git-add-modified/alias.sh create mode 100644 doc/git-add-others/alias.sh create mode 100644 doc/git-add-stage/alias.sh create mode 100644 doc/git-add-unmerged/alias.sh create mode 100644 doc/git-alias/alias.sh create mode 100644 doc/git-aliases/alias.sh create mode 100644 doc/git-ap/alias.txt create mode 100644 doc/git-archive/alias.sh create mode 100644 doc/git-assume-all/alias.sh create mode 100644 doc/git-assume/alias.txt create mode 100644 doc/git-assumed/alias.sh create mode 100644 doc/git-au/alias.txt create mode 100644 doc/git-b/alias.txt create mode 100644 doc/git-bed/alias.txt create mode 100644 doc/git-bm/alias.txt create mode 100644 doc/git-bnm/alias.txt create mode 100644 doc/git-branch-commit-first/alias.sh create mode 100644 doc/git-branch-commit-last/alias.sh create mode 100644 doc/git-branch-commit-next/alias.sh create mode 100644 doc/git-branch-commit-prev/alias.sh create mode 100644 doc/git-branches/alias.txt create mode 100644 doc/git-bsd/alias.sh create mode 100644 doc/git-bv/alias.txt create mode 100644 doc/git-bvv/alias.txt create mode 100644 doc/git-c/alias.txt create mode 100644 doc/git-ca/alias.txt create mode 100644 doc/git-caa/alias.txt create mode 100644 doc/git-caam/alias.txt create mode 100644 doc/git-caane/alias.txt create mode 100644 doc/git-cam/alias.txt create mode 100644 doc/git-cane/alias.txt create mode 100644 doc/git-chart/alias.sh create mode 100644 doc/git-cherry-pick-merge/alias.sh create mode 100644 doc/git-churn/alias.sh create mode 100644 doc/git-ci/alias.txt create mode 100644 doc/git-cleaner/alias.txt create mode 100644 doc/git-cleanest/alias.txt create mode 100644 doc/git-cleanout/alias.sh create mode 100644 doc/git-clone-lean/alias.txt create mode 100644 doc/git-cloner/alias.txt create mode 100644 doc/git-cm/alias.txt create mode 100644 doc/git-co/alias.txt create mode 100644 doc/git-cob/alias.txt create mode 100644 doc/git-commit-is-merge/alias.sh create mode 100644 doc/git-commit-message-key-lines/alias.sh create mode 100644 doc/git-commit-parents/alias.sh create mode 100644 doc/git-cong/alias.txt create mode 100644 doc/git-cp/alias.txt create mode 100644 doc/git-cpa/alias.txt create mode 100644 doc/git-cpc/alias.txt create mode 100644 doc/git-cpn/alias.txt create mode 100644 doc/git-cpnx/alias.txt create mode 100644 doc/git-current-branch/alias.txt create mode 100644 doc/git-cvs-e/alias.txt create mode 100644 doc/git-cvs-i/alias.txt create mode 100644 doc/git-d/alias.txt create mode 100644 doc/git-dc/alias.txt create mode 100644 doc/git-dd/alias.txt create mode 100644 doc/git-debug/alias.sh create mode 100644 doc/git-default-branch/alias.txt create mode 100644 doc/git-diff-all/alias.sh create mode 100644 doc/git-diff-changes/alias.txt create mode 100644 doc/git-diff-chunk/alias.sh create mode 100644 doc/git-diff-deep/alias.txt create mode 100644 doc/git-diff-staged/alias.txt create mode 100644 doc/git-diff-stat/alias.txt create mode 100644 doc/git-discard/alias.txt create mode 100644 doc/git-ds/alias.txt create mode 100644 doc/git-dw/alias.txt create mode 100644 doc/git-edit-cached/alias.sh create mode 100644 doc/git-edit-deleted/alias.sh create mode 100644 doc/git-edit-ignored/alias.sh create mode 100644 doc/git-edit-killed/alias.sh create mode 100644 doc/git-edit-modified/alias.sh create mode 100644 doc/git-edit-others/alias.sh create mode 100644 doc/git-edit-stage/alias.sh create mode 100644 doc/git-edit-unmerged/alias.sh create mode 100644 doc/git-exec/alias.sh create mode 100644 doc/git-expunge/alias.sh create mode 100644 doc/git-f/alias.txt create mode 100644 doc/git-fa/alias.txt create mode 100644 doc/git-fav/alias.txt create mode 100644 doc/git-fixup/alias.sh create mode 100644 doc/git-g/alias.txt create mode 100644 doc/git-get/alias.sh create mode 100644 doc/git-gg/alias.txt create mode 100644 doc/git-gitk-conflict/alias.sh create mode 100644 doc/git-gitk-history-all/alias.sh create mode 100644 doc/git-gn/alias.txt create mode 100644 doc/git-graphviz/alias.sh create mode 100644 doc/git-grep-ack/alias.txt create mode 100644 doc/git-grep-all/alias.sh create mode 100644 doc/git-grep-group/alias.txt create mode 100644 doc/git-heads/alias.sh create mode 100644 doc/git-hew-dry-run/alias.sh create mode 100644 doc/git-hew-local-dry-run/alias.sh create mode 100644 doc/git-hew-local/alias.sh create mode 100644 doc/git-hew-remote-dry-run/alias.sh create mode 100644 doc/git-hew-remote/alias.sh create mode 100644 doc/git-hew/alias.sh create mode 100644 doc/git-ignore/alias.sh create mode 100644 doc/git-inbound/alias.sh create mode 100644 doc/git-init-empty/alias.sh create mode 100644 doc/git-initer/alias.txt create mode 100644 doc/git-intercommit/alias.sh create mode 100644 doc/git-issues/alias.sh create mode 100644 doc/git-l/alias.txt create mode 100644 doc/git-last-tag/alias.txt create mode 100644 doc/git-last-tagged/alias.sh create mode 100644 doc/git-lfp/alias.txt create mode 100644 doc/git-lg/alias.txt create mode 100644 doc/git-ll/alias.txt create mode 100644 doc/git-lll/alias.txt create mode 100644 doc/git-lo/alias.txt create mode 100644 doc/git-log-1-day/alias.txt create mode 100644 doc/git-log-1-hour/alias.txt create mode 100644 doc/git-log-1-month/alias.txt create mode 100644 doc/git-log-1-week/alias.txt create mode 100644 doc/git-log-1-year/alias.txt create mode 100644 doc/git-log-date-first/alias.sh create mode 100644 doc/git-log-date-last/alias.txt create mode 100644 doc/git-log-fetched/alias.txt create mode 100644 doc/git-log-fresh/alias.txt create mode 100644 doc/git-log-graph/alias.txt create mode 100644 doc/git-log-list-long/alias.txt create mode 100644 doc/git-log-list/alias.txt create mode 100644 doc/git-log-local/alias.txt create mode 100644 doc/git-log-local/index.md create mode 100644 doc/git-log-my-day/alias.sh create mode 100644 doc/git-log-my-hour/alias.sh create mode 100644 doc/git-log-my-month/alias.sh create mode 100644 doc/git-log-my-week/alias.sh create mode 100644 doc/git-log-my-year/alias.sh create mode 100644 doc/git-log-my/alias.sh create mode 100644 doc/git-log-of-count-and-day-of-week/alias.sh create mode 100644 doc/git-log-of-count-and-day/alias.sh create mode 100644 doc/git-log-of-count-and-email/alias.sh create mode 100644 doc/git-log-of-count-and-format-with-date/alias.sh create mode 100644 doc/git-log-of-count-and-format/alias.sh create mode 100644 doc/git-log-of-count-and-hour-of-day/alias.sh create mode 100644 doc/git-log-of-count-and-hour/alias.sh create mode 100644 doc/git-log-of-count-and-month/alias.sh create mode 100644 doc/git-log-of-count-and-week-of-year/alias.sh create mode 100644 doc/git-log-of-count-and-week/alias.sh create mode 100644 doc/git-log-of-count-and-year/alias.sh create mode 100644 doc/git-log-of-day-and-count/alias.sh create mode 100644 doc/git-log-of-day-of-week-and-count/alias.sh create mode 100644 doc/git-log-of-email-and-count/alias.sh create mode 100644 doc/git-log-of-format-and-count-with-date/alias.sh create mode 100644 doc/git-log-of-format-and-count/alias.sh create mode 100644 doc/git-log-of-hour-and-count/alias.sh create mode 100644 doc/git-log-of-hour-of-day-and-count/alias.sh create mode 100644 doc/git-log-of-month-and-count/alias.sh create mode 100644 doc/git-log-of-week-and-count/alias.sh create mode 100644 doc/git-log-of-week-of-year-and-count/alias.sh create mode 100644 doc/git-log-of-year-and-count/alias.sh create mode 100644 doc/git-log-refs/alias.txt create mode 100644 doc/git-log-timeline/alias.txt create mode 100644 doc/git-lor/alias.txt create mode 100644 doc/git-lp/alias.txt create mode 100644 doc/git-ls/alias.txt create mode 100644 doc/git-lsd/alias.txt create mode 100644 doc/git-lsfn/alias.txt create mode 100644 doc/git-lsio/alias.txt create mode 100644 doc/git-lto/alias.txt create mode 100644 doc/git-m/alias.txt create mode 100644 doc/git-ma/alias.txt create mode 100644 doc/git-mainly/alias.sh create mode 100644 doc/git-mc/alias.txt create mode 100644 doc/git-merge-span-diff/alias.sh create mode 100644 doc/git-merge-span-difftool/alias.sh create mode 100644 doc/git-merge-span-log/alias.sh create mode 100644 doc/git-merge-span/alias.sh create mode 100644 doc/git-mncnf/alias.txt create mode 100644 doc/git-move-alias/alias.sh create mode 100644 doc/git-o/alias.txt create mode 100644 doc/git-optimizer/alias.sh create mode 100644 doc/git-orphans/alias.txt create mode 100644 doc/git-ours/alias.sh create mode 100644 doc/git-outbound/alias.txt create mode 100644 doc/git-p/alias.txt create mode 100644 doc/git-panic/alias.sh create mode 100644 doc/git-pf/alias.txt create mode 100644 doc/git-pr/alias.txt create mode 100644 doc/git-prp/alias.txt create mode 100644 doc/git-pruner/alias.sh create mode 100644 doc/git-publish/alias.sh create mode 100644 doc/git-pull1/alias.sh create mode 100644 doc/git-push1/alias.sh create mode 100644 doc/git-pushy/alias.sh create mode 100644 doc/git-put/alias.sh create mode 100644 doc/git-rb/alias.txt create mode 100644 doc/git-rba/alias.txt create mode 100644 doc/git-rbc/alias.txt create mode 100644 doc/git-rbi/alias.txt create mode 100644 doc/git-rbiu/alias.txt create mode 100644 doc/git-rbs/alias.txt create mode 100644 doc/git-rebase-branch/alias.sh create mode 100644 doc/git-rebase-recent/alias.sh create mode 100644 doc/git-refs-by-date/alias.txt create mode 100644 doc/git-reincarnate/alias.sh create mode 100644 doc/git-remote-ref/alias.sh create mode 100644 doc/git-remotes-prune/alias.sh create mode 100644 doc/git-remotes-push/alias.sh create mode 100644 doc/git-repacker/alias.txt create mode 100644 doc/git-reset-commit-hard-clean/alias.sh create mode 100644 doc/git-reset-commit-hard/alias.txt create mode 100644 doc/git-reset-commit/alias.txt create mode 100644 doc/git-reset-to-pristine/alias.sh create mode 100644 doc/git-reset-to-upstream/alias.sh create mode 100644 doc/git-rev-list-all-objects-by-size-and-name/alias.sh create mode 100644 doc/git-rev-list-all-objects-by-size/alias.sh create mode 100644 doc/git-rl/alias.txt create mode 100644 doc/git-rr/alias.txt create mode 100644 doc/git-rrp/alias.txt create mode 100644 doc/git-rrs/alias.txt create mode 100644 doc/git-rru/alias.txt create mode 100644 doc/git-rv/alias.txt create mode 100644 doc/git-rvnc/alias.txt create mode 100644 doc/git-s/alias.txt create mode 100644 doc/git-sb/alias.txt create mode 100644 doc/git-search-commits/alias.sh create mode 100644 doc/git-serve/alias.txt create mode 100644 doc/git-show-unreachable/alias.sh create mode 100644 doc/git-sm/alias.txt create mode 100644 doc/git-sma/alias.txt create mode 100644 doc/git-smi/alias.txt create mode 100644 doc/git-sms/alias.txt create mode 100644 doc/git-smu/alias.txt create mode 100644 doc/git-smui/alias.txt create mode 100644 doc/git-smuir/alias.txt create mode 100644 doc/git-snapshot/alias.sh create mode 100644 doc/git-ss/alias.txt create mode 100644 doc/git-ssb/alias.txt create mode 100644 doc/git-stashes/alias.txt create mode 100644 doc/git-summary/alias.sh create mode 100644 doc/git-svn-b/alias.txt create mode 100644 doc/git-svn-c/alias.txt create mode 100644 doc/git-svn-cp/alias.sh create mode 100644 doc/git-svn-m/alias.txt create mode 100644 doc/git-tags/alias.txt create mode 100644 doc/git-theirs/alias.sh create mode 100644 doc/git-top/alias.txt create mode 100644 doc/git-topic-base-branch/alias.sh create mode 100644 doc/git-topic-begin/alias.sh create mode 100644 doc/git-topic-end/alias.sh create mode 100644 doc/git-topic-move/alias.sh create mode 100644 doc/git-topic-sync/alias.sh create mode 100644 doc/git-track-all-remote-branches/alias.sh create mode 100644 doc/git-track/alias.sh create mode 100644 doc/git-unadd/alias.txt create mode 100644 doc/git-unassume-all/alias.sh create mode 100644 doc/git-unassume/alias.txt create mode 100644 doc/git-uncommit/alias.txt create mode 100644 doc/git-undo-commit-hard-clean/alias.sh create mode 100644 doc/git-undo-commit-hard/alias.txt create mode 100644 doc/git-undo-commit/alias.txt create mode 100644 doc/git-undo-to-pristine/alias.sh create mode 100644 doc/git-undo-to-upstream/alias.sh create mode 100644 doc/git-unpublish/alias.sh create mode 100644 doc/git-untrack/alias.sh create mode 100644 doc/git-unwip/alias.sh create mode 100644 doc/git-upstream-branch/alias.sh create mode 100644 doc/git-w/alias.txt create mode 100644 doc/git-whatis/alias.txt create mode 100644 doc/git-who/alias.txt create mode 100644 doc/git-whois/alias.sh create mode 100644 doc/git-wip/alias.sh create mode 100755 dry.sh diff --git a/doc/git-a/alias.txt b/doc/git-a/alias.txt new file mode 100644 index 00000000..76d4bb83 --- /dev/null +++ b/doc/git-a/alias.txt @@ -0,0 +1 @@ +add diff --git a/doc/git-aa/alias.txt b/doc/git-aa/alias.txt new file mode 100644 index 00000000..7f9cb388 --- /dev/null +++ b/doc/git-aa/alias.txt @@ -0,0 +1 @@ +add --all diff --git a/doc/git-add-alias/alias.sh b/doc/git-add-alias/alias.sh new file mode 100644 index 00000000..bb5ea2ca --- /dev/null +++ b/doc/git-add-alias/alias.sh @@ -0,0 +1 @@ +f() { if [ $# != 3 ]; then echo "Usage: git add-alias ( --local | --global ) "; echo "Error: this command needs 3 arguments."; return 2; fi; if [ -n "$(git config "$1" --get alias."$2")" ]; then echo "Alias '$2' already exists, thus no change happened."; return 3; fi; git config "$1" alias."$2" "$3" && return 0; echo "Usage: git add-alias ( --local | --global ) "; echo "Error: unknown failure."; return 1; }; f diff --git a/doc/git-add-cached/alias.sh b/doc/git-add-cached/alias.sh new file mode 100644 index 00000000..af83e32d --- /dev/null +++ b/doc/git-add-cached/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --cached | sort -u)" diff --git a/doc/git-add-deleted/alias.sh b/doc/git-add-deleted/alias.sh new file mode 100644 index 00000000..ca965f1c --- /dev/null +++ b/doc/git-add-deleted/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --deleted | sort -u)" diff --git a/doc/git-add-ignored/alias.sh b/doc/git-add-ignored/alias.sh new file mode 100644 index 00000000..b429d603 --- /dev/null +++ b/doc/git-add-ignored/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --ignored | sort -u)" diff --git a/doc/git-add-killed/alias.sh b/doc/git-add-killed/alias.sh new file mode 100644 index 00000000..2085c916 --- /dev/null +++ b/doc/git-add-killed/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --killed | sort -u)" diff --git a/doc/git-add-modified/alias.sh b/doc/git-add-modified/alias.sh new file mode 100644 index 00000000..987c29c4 --- /dev/null +++ b/doc/git-add-modified/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --modified | sort -u)" diff --git a/doc/git-add-others/alias.sh b/doc/git-add-others/alias.sh new file mode 100644 index 00000000..492f010f --- /dev/null +++ b/doc/git-add-others/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --others | sort -u)" diff --git a/doc/git-add-stage/alias.sh b/doc/git-add-stage/alias.sh new file mode 100644 index 00000000..64b7b7fc --- /dev/null +++ b/doc/git-add-stage/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --stage | cut -f2 | sort -u)" diff --git a/doc/git-add-unmerged/alias.sh b/doc/git-add-unmerged/alias.sh new file mode 100644 index 00000000..f6407670 --- /dev/null +++ b/doc/git-add-unmerged/alias.sh @@ -0,0 +1 @@ +git add "$(git ls-files --unmerged | cut -f2 | sort -u)" diff --git a/doc/git-alias/alias.sh b/doc/git-alias/alias.sh new file mode 100644 index 00000000..cce52519 --- /dev/null +++ b/doc/git-alias/alias.sh @@ -0,0 +1 @@ +f(){ echo "Git Alias is project that has a collection of git alias commands."; echo "The purpose is to help make git easier, faster, and more capable."; echo "Free open source repository ."; echo ""; echo "To see your existing git aliases:"; echo " git aliases"; echo ""; echo "To see your existing git aliases by using git directly:"; echo " git config --get-regexp ^alias\."; };f diff --git a/doc/git-aliases/alias.sh b/doc/git-aliases/alias.sh new file mode 100644 index 00000000..8b109e79 --- /dev/null +++ b/doc/git-aliases/alias.sh @@ -0,0 +1 @@ +git config --get-regexp '^alias\.' | cut -c 7- | sed 's/ / = /' diff --git a/doc/git-ap/alias.txt b/doc/git-ap/alias.txt new file mode 100644 index 00000000..a21923e9 --- /dev/null +++ b/doc/git-ap/alias.txt @@ -0,0 +1 @@ +add --patch diff --git a/doc/git-archive/alias.sh b/doc/git-archive/alias.sh new file mode 100644 index 00000000..e2deea6c --- /dev/null +++ b/doc/git-archive/alias.sh @@ -0,0 +1 @@ +f() { top="$(rev-parse --show-toplevel)"; cd "$top" || exit 1 ; tar cvf "$top.tar" "$top" ; }; f diff --git a/doc/git-assume-all/alias.sh b/doc/git-assume-all/alias.sh new file mode 100644 index 00000000..2a35c2a4 --- /dev/null +++ b/doc/git-assume-all/alias.sh @@ -0,0 +1 @@ +git st -s | awk '{ print $2 }' | xargs -r git assume diff --git a/doc/git-assume/alias.txt b/doc/git-assume/alias.txt new file mode 100644 index 00000000..d5616432 --- /dev/null +++ b/doc/git-assume/alias.txt @@ -0,0 +1 @@ +update-index --assume-unchanged diff --git a/doc/git-assumed/alias.sh b/doc/git-assumed/alias.sh new file mode 100644 index 00000000..7a3fc56f --- /dev/null +++ b/doc/git-assumed/alias.sh @@ -0,0 +1 @@ +git ls-files -v | grep ^h | cut -c 3- diff --git a/doc/git-au/alias.txt b/doc/git-au/alias.txt new file mode 100644 index 00000000..d0ee5ed5 --- /dev/null +++ b/doc/git-au/alias.txt @@ -0,0 +1 @@ +add --update diff --git a/doc/git-b/alias.txt b/doc/git-b/alias.txt new file mode 100644 index 00000000..80858c1a --- /dev/null +++ b/doc/git-b/alias.txt @@ -0,0 +1 @@ +branch diff --git a/doc/git-bed/alias.txt b/doc/git-bed/alias.txt new file mode 100644 index 00000000..68518604 --- /dev/null +++ b/doc/git-bed/alias.txt @@ -0,0 +1 @@ +branch --edit-description diff --git a/doc/git-bm/alias.txt b/doc/git-bm/alias.txt new file mode 100644 index 00000000..b4573f6a --- /dev/null +++ b/doc/git-bm/alias.txt @@ -0,0 +1 @@ +branch --merged diff --git a/doc/git-bnm/alias.txt b/doc/git-bnm/alias.txt new file mode 100644 index 00000000..81a4d597 --- /dev/null +++ b/doc/git-bnm/alias.txt @@ -0,0 +1 @@ +branch --no-merged diff --git a/doc/git-branch-commit-first/alias.sh b/doc/git-branch-commit-first/alias.sh new file mode 100644 index 00000000..22b6e389 --- /dev/null +++ b/doc/git-branch-commit-first/alias.sh @@ -0,0 +1 @@ +f() { branch="${1:-$(git current-branch)}"; count="${2:-1}"; git log --reverse --pretty=%H "$branch" | head -"$count"; }; f diff --git a/doc/git-branch-commit-last/alias.sh b/doc/git-branch-commit-last/alias.sh new file mode 100644 index 00000000..fa479d76 --- /dev/null +++ b/doc/git-branch-commit-last/alias.sh @@ -0,0 +1 @@ +f() { branch="${1:-$(git current-branch)}"; count="${2:-1}"; git log --pretty=%H "$branch" | head -"$count"; }; f diff --git a/doc/git-branch-commit-next/alias.sh b/doc/git-branch-commit-next/alias.sh new file mode 100644 index 00000000..335d896b --- /dev/null +++ b/doc/git-branch-commit-next/alias.sh @@ -0,0 +1 @@ +f() { branch="${1:-$(git current-branch)}"; count="${2:-1}"; git log --reverse --pretty=%H "$branch" | grep -A "$count" "$(git rev-parse HEAD)" | tail +2; }; f diff --git a/doc/git-branch-commit-prev/alias.sh b/doc/git-branch-commit-prev/alias.sh new file mode 100644 index 00000000..8a2a382d --- /dev/null +++ b/doc/git-branch-commit-prev/alias.sh @@ -0,0 +1 @@ +f() { branch="${1:-$(git current-branch)}"; count="${2:-1}"; git log --pretty=%H "$branch" | grep -A "$count" "$(git rev-parse HEAD)" | tail +2; }; f diff --git a/doc/git-branches/alias.txt b/doc/git-branches/alias.txt new file mode 100644 index 00000000..da85c79f --- /dev/null +++ b/doc/git-branches/alias.txt @@ -0,0 +1 @@ +branch -a diff --git a/doc/git-bsd/alias.sh b/doc/git-bsd/alias.sh new file mode 100644 index 00000000..8527e00c --- /dev/null +++ b/doc/git-bsd/alias.sh @@ -0,0 +1 @@ +f(){ branch="${1:-$(git rev-parse --abbrev-ref HEAD 2>/dev/null)}"; git config "branch.$branch.description"; };f diff --git a/doc/git-bv/alias.txt b/doc/git-bv/alias.txt new file mode 100644 index 00000000..d5a51e6c --- /dev/null +++ b/doc/git-bv/alias.txt @@ -0,0 +1 @@ +branch --verbose diff --git a/doc/git-bvv/alias.txt b/doc/git-bvv/alias.txt new file mode 100644 index 00000000..54d5b639 --- /dev/null +++ b/doc/git-bvv/alias.txt @@ -0,0 +1 @@ +branch --verbose --verbose diff --git a/doc/git-c/alias.txt b/doc/git-c/alias.txt new file mode 100644 index 00000000..01f9a2aa --- /dev/null +++ b/doc/git-c/alias.txt @@ -0,0 +1 @@ +commit diff --git a/doc/git-ca/alias.txt b/doc/git-ca/alias.txt new file mode 100644 index 00000000..d8c8e92f --- /dev/null +++ b/doc/git-ca/alias.txt @@ -0,0 +1 @@ +commit --amend diff --git a/doc/git-caa/alias.txt b/doc/git-caa/alias.txt new file mode 100644 index 00000000..063e2b35 --- /dev/null +++ b/doc/git-caa/alias.txt @@ -0,0 +1 @@ +commit --amend --all diff --git a/doc/git-caam/alias.txt b/doc/git-caam/alias.txt new file mode 100644 index 00000000..22e25a97 --- /dev/null +++ b/doc/git-caam/alias.txt @@ -0,0 +1 @@ +commit --amend --all --message diff --git a/doc/git-caane/alias.txt b/doc/git-caane/alias.txt new file mode 100644 index 00000000..a005cbdf --- /dev/null +++ b/doc/git-caane/alias.txt @@ -0,0 +1 @@ +commit --amend --all --no-edit diff --git a/doc/git-cam/alias.txt b/doc/git-cam/alias.txt new file mode 100644 index 00000000..27e3d469 --- /dev/null +++ b/doc/git-cam/alias.txt @@ -0,0 +1 @@ +commit --amend --message diff --git a/doc/git-cane/alias.txt b/doc/git-cane/alias.txt new file mode 100644 index 00000000..82b10a34 --- /dev/null +++ b/doc/git-cane/alias.txt @@ -0,0 +1 @@ +commit --amend --no-edit diff --git a/doc/git-chart/alias.sh b/doc/git-chart/alias.sh new file mode 100644 index 00000000..97359765 --- /dev/null +++ b/doc/git-chart/alias.sh @@ -0,0 +1 @@ +f() { git log --format=oneline --format="%aE %at" --since=6-weeks-ago "$*" | awk ' function time_to_slot(t) { return strftime("%Y-%m-%d", t, true) } function count_to_char(i) { return (i > 0) ? ((i < 10) ? i : "X") : "." } BEGIN { time_min = systime(); time_max = 0; SECONDS_PER_DAY=86400; } { item = $1; time = 0 + $2; if (time > time_max){ time_max = time } else if (time < time_min){ time_min = time }; slot = time_to_slot(time); items[item]++; slots[slot]++; views[item, slot]++; } END{ printf("Chart time range %s to %s.\n", time_to_slot(time_min), time_to_slot(time_max)); time_max_add = time_max += SECONDS_PER_DAY; for(item in items){ row = ""; for(time = time_min; time < time_max_add; time += SECONDS_PER_DAY) { slot = time_to_slot(time); count = views[item, slot]; row = row count_to_char(count); } print row, item; } }'; }; f diff --git a/doc/git-cherry-pick-merge/alias.sh b/doc/git-cherry-pick-merge/alias.sh new file mode 100644 index 00000000..1ba84707 --- /dev/null +++ b/doc/git-cherry-pick-merge/alias.sh @@ -0,0 +1 @@ +sh -c 'git cherry-pick --no-commit --mainline 1 $0 && git log -1 --pretty=%P $0 | cut -b 42- > .git/MERGE_HEAD && git commit --verbose' diff --git a/doc/git-churn/alias.sh b/doc/git-churn/alias.sh new file mode 100644 index 00000000..fcb2bf45 --- /dev/null +++ b/doc/git-churn/alias.sh @@ -0,0 +1 @@ +f() { git log --all --find-copies --find-renames --name-only --format='format:' "$@" | awk 'NF{a[$0]++}END{for(i in a){print a[i], i}}' | sort -rn;};f diff --git a/doc/git-ci/alias.txt b/doc/git-ci/alias.txt new file mode 100644 index 00000000..987750c1 --- /dev/null +++ b/doc/git-ci/alias.txt @@ -0,0 +1 @@ +commit --interactive diff --git a/doc/git-cleaner/alias.txt b/doc/git-cleaner/alias.txt new file mode 100644 index 00000000..61c71f10 --- /dev/null +++ b/doc/git-cleaner/alias.txt @@ -0,0 +1 @@ +clean -dff diff --git a/doc/git-cleanest/alias.txt b/doc/git-cleanest/alias.txt new file mode 100644 index 00000000..45957b31 --- /dev/null +++ b/doc/git-cleanest/alias.txt @@ -0,0 +1 @@ +clean -dffx diff --git a/doc/git-cleanout/alias.sh b/doc/git-cleanout/alias.sh new file mode 100644 index 00000000..705d9c97 --- /dev/null +++ b/doc/git-cleanout/alias.sh @@ -0,0 +1 @@ +git clean -df && git checkout -- . diff --git a/doc/git-clone-lean/alias.txt b/doc/git-clone-lean/alias.txt new file mode 100644 index 00000000..f72f825f --- /dev/null +++ b/doc/git-clone-lean/alias.txt @@ -0,0 +1 @@ +clone --depth 1 --filter=combine:blob:none+tree:0 --no-checkout diff --git a/doc/git-cloner/alias.txt b/doc/git-cloner/alias.txt new file mode 100644 index 00000000..70dc2fff --- /dev/null +++ b/doc/git-cloner/alias.txt @@ -0,0 +1 @@ +clone --recursive diff --git a/doc/git-cm/alias.txt b/doc/git-cm/alias.txt new file mode 100644 index 00000000..5af9efcb --- /dev/null +++ b/doc/git-cm/alias.txt @@ -0,0 +1 @@ +commit --message diff --git a/doc/git-co/alias.txt b/doc/git-co/alias.txt new file mode 100644 index 00000000..72c48c69 --- /dev/null +++ b/doc/git-co/alias.txt @@ -0,0 +1 @@ +checkout diff --git a/doc/git-cob/alias.txt b/doc/git-cob/alias.txt new file mode 100644 index 00000000..3dee3c93 --- /dev/null +++ b/doc/git-cob/alias.txt @@ -0,0 +1 @@ +checkout -b diff --git a/doc/git-commit-is-merge/alias.sh b/doc/git-commit-is-merge/alias.sh new file mode 100644 index 00000000..5821c2a4 --- /dev/null +++ b/doc/git-commit-is-merge/alias.sh @@ -0,0 +1 @@ +f(){ [ -n "$(git commit-parents "$*" | sed '0,/^parent /d')" ];};f diff --git a/doc/git-commit-message-key-lines/alias.sh b/doc/git-commit-message-key-lines/alias.sh new file mode 100644 index 00000000..18366d77 --- /dev/null +++ b/doc/git-commit-message-key-lines/alias.sh @@ -0,0 +1 @@ +f(){ echo "Commit: $1"; git log "$1" --format=fuller | grep "^[[:blank:]]*[[:alnum:]][-[:alnum:]]*:" | sed "s/^[[:blank:]]*//; s/:[[:blank:]]*/: /"; }; f diff --git a/doc/git-commit-parents/alias.sh b/doc/git-commit-parents/alias.sh new file mode 100644 index 00000000..8a9a7fb2 --- /dev/null +++ b/doc/git-commit-parents/alias.sh @@ -0,0 +1 @@ +f(){ git cat-file -p "${*:-HEAD}" | sed -n '/0/,/^ *$/{/^parent /p}'; };f diff --git a/doc/git-cong/alias.txt b/doc/git-cong/alias.txt new file mode 100644 index 00000000..5209a4e9 --- /dev/null +++ b/doc/git-cong/alias.txt @@ -0,0 +1 @@ +checkout --no-guess diff --git a/doc/git-cp/alias.txt b/doc/git-cp/alias.txt new file mode 100644 index 00000000..24ca8d60 --- /dev/null +++ b/doc/git-cp/alias.txt @@ -0,0 +1 @@ +cherry-pick diff --git a/doc/git-cpa/alias.txt b/doc/git-cpa/alias.txt new file mode 100644 index 00000000..4b7f24fa --- /dev/null +++ b/doc/git-cpa/alias.txt @@ -0,0 +1 @@ +cherry-pick --abort diff --git a/doc/git-cpc/alias.txt b/doc/git-cpc/alias.txt new file mode 100644 index 00000000..b004ff18 --- /dev/null +++ b/doc/git-cpc/alias.txt @@ -0,0 +1 @@ +cherry-pick --continue diff --git a/doc/git-cpn/alias.txt b/doc/git-cpn/alias.txt new file mode 100644 index 00000000..7c490cdc --- /dev/null +++ b/doc/git-cpn/alias.txt @@ -0,0 +1 @@ +cherry-pick -n diff --git a/doc/git-cpnx/alias.txt b/doc/git-cpnx/alias.txt new file mode 100644 index 00000000..93975170 --- /dev/null +++ b/doc/git-cpnx/alias.txt @@ -0,0 +1 @@ +cherry-pick -n -x diff --git a/doc/git-current-branch/alias.txt b/doc/git-current-branch/alias.txt new file mode 100644 index 00000000..65bb5e0a --- /dev/null +++ b/doc/git-current-branch/alias.txt @@ -0,0 +1 @@ +rev-parse --abbrev-ref HEAD diff --git a/doc/git-cvs-e/alias.txt b/doc/git-cvs-e/alias.txt new file mode 100644 index 00000000..27c59284 --- /dev/null +++ b/doc/git-cvs-e/alias.txt @@ -0,0 +1 @@ +cvsexportcommit -u -p diff --git a/doc/git-cvs-i/alias.txt b/doc/git-cvs-i/alias.txt new file mode 100644 index 00000000..8c63c767 --- /dev/null +++ b/doc/git-cvs-i/alias.txt @@ -0,0 +1 @@ +cvsimport -k -a diff --git a/doc/git-d/alias.txt b/doc/git-d/alias.txt new file mode 100644 index 00000000..e7794243 --- /dev/null +++ b/doc/git-d/alias.txt @@ -0,0 +1 @@ +diff diff --git a/doc/git-dc/alias.txt b/doc/git-dc/alias.txt new file mode 100644 index 00000000..8531918a --- /dev/null +++ b/doc/git-dc/alias.txt @@ -0,0 +1 @@ +diff --cached diff --git a/doc/git-dd/alias.txt b/doc/git-dd/alias.txt new file mode 100644 index 00000000..4575288f --- /dev/null +++ b/doc/git-dd/alias.txt @@ -0,0 +1 @@ +diff-deep diff --git a/doc/git-debug/alias.sh b/doc/git-debug/alias.sh new file mode 100644 index 00000000..4f1f89f3 --- /dev/null +++ b/doc/git-debug/alias.sh @@ -0,0 +1 @@ +GIT_PAGER='' gdb --args git diff --git a/doc/git-default-branch/alias.txt b/doc/git-default-branch/alias.txt new file mode 100644 index 00000000..196d68d5 --- /dev/null +++ b/doc/git-default-branch/alias.txt @@ -0,0 +1 @@ +config init.defaultBranch diff --git a/doc/git-diff-all/alias.sh b/doc/git-diff-all/alias.sh new file mode 100644 index 00000000..d9f027f1 --- /dev/null +++ b/doc/git-diff-all/alias.sh @@ -0,0 +1 @@ +for name in $(git diff --name-only "$1"); do git difftool "$1" "$name" & done diff --git a/doc/git-diff-changes/alias.txt b/doc/git-diff-changes/alias.txt new file mode 100644 index 00000000..b39e596f --- /dev/null +++ b/doc/git-diff-changes/alias.txt @@ -0,0 +1 @@ +diff --name-status -r diff --git a/doc/git-diff-chunk/alias.sh b/doc/git-diff-chunk/alias.sh new file mode 100644 index 00000000..067911e3 --- /dev/null +++ b/doc/git-diff-chunk/alias.sh @@ -0,0 +1 @@ +f() { git show "$1:$3" | sed -n "/^[^ ].*$4(/,/^}/p" > .tmp1 ; git show "$2:$3" | sed -n "/^[^ ].*$4(/,/^}/p" > .tmp2 ; git diff --no-index .tmp1 .tmp2 ; }; f diff --git a/doc/git-diff-deep/alias.txt b/doc/git-diff-deep/alias.txt new file mode 100644 index 00000000..311d0838 --- /dev/null +++ b/doc/git-diff-deep/alias.txt @@ -0,0 +1 @@ +diff --check --dirstat --find-copies --find-renames --histogram --color diff --git a/doc/git-diff-staged/alias.txt b/doc/git-diff-staged/alias.txt new file mode 100644 index 00000000..8531918a --- /dev/null +++ b/doc/git-diff-staged/alias.txt @@ -0,0 +1 @@ +diff --cached diff --git a/doc/git-diff-stat/alias.txt b/doc/git-diff-stat/alias.txt new file mode 100644 index 00000000..619ba146 --- /dev/null +++ b/doc/git-diff-stat/alias.txt @@ -0,0 +1 @@ +diff --stat --ignore-space-change -r diff --git a/doc/git-discard/alias.txt b/doc/git-discard/alias.txt new file mode 100644 index 00000000..f8b34e73 --- /dev/null +++ b/doc/git-discard/alias.txt @@ -0,0 +1 @@ +checkout -- diff --git a/doc/git-ds/alias.txt b/doc/git-ds/alias.txt new file mode 100644 index 00000000..258ba164 --- /dev/null +++ b/doc/git-ds/alias.txt @@ -0,0 +1 @@ +diff --staged diff --git a/doc/git-dw/alias.txt b/doc/git-dw/alias.txt new file mode 100644 index 00000000..7f4e6953 --- /dev/null +++ b/doc/git-dw/alias.txt @@ -0,0 +1 @@ +diff --word-diff diff --git a/doc/git-edit-cached/alias.sh b/doc/git-edit-cached/alias.sh new file mode 100644 index 00000000..d2d4c217 --- /dev/null +++ b/doc/git-edit-cached/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --cached | sort -u)" diff --git a/doc/git-edit-deleted/alias.sh b/doc/git-edit-deleted/alias.sh new file mode 100644 index 00000000..b75c56b7 --- /dev/null +++ b/doc/git-edit-deleted/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --deleted | sort -u)" diff --git a/doc/git-edit-ignored/alias.sh b/doc/git-edit-ignored/alias.sh new file mode 100644 index 00000000..93e395d2 --- /dev/null +++ b/doc/git-edit-ignored/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --ignored | sort -u)" diff --git a/doc/git-edit-killed/alias.sh b/doc/git-edit-killed/alias.sh new file mode 100644 index 00000000..38e92ade --- /dev/null +++ b/doc/git-edit-killed/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --killed | sort -u)" diff --git a/doc/git-edit-modified/alias.sh b/doc/git-edit-modified/alias.sh new file mode 100644 index 00000000..9901395b --- /dev/null +++ b/doc/git-edit-modified/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --modified | sort -u)" diff --git a/doc/git-edit-others/alias.sh b/doc/git-edit-others/alias.sh new file mode 100644 index 00000000..1b15635b --- /dev/null +++ b/doc/git-edit-others/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --others | sort -u)" diff --git a/doc/git-edit-stage/alias.sh b/doc/git-edit-stage/alias.sh new file mode 100644 index 00000000..1598b207 --- /dev/null +++ b/doc/git-edit-stage/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --stage | cut -f2 | sort -u)" diff --git a/doc/git-edit-unmerged/alias.sh b/doc/git-edit-unmerged/alias.sh new file mode 100644 index 00000000..2d044a48 --- /dev/null +++ b/doc/git-edit-unmerged/alias.sh @@ -0,0 +1 @@ +$(git var GIT_EDITOR) "$(git ls-files --unmerged | cut -f2 | sort -u)" diff --git a/doc/git-exec/alias.sh b/doc/git-exec/alias.sh new file mode 100644 index 00000000..a6b944a0 --- /dev/null +++ b/doc/git-exec/alias.sh @@ -0,0 +1 @@ + exec diff --git a/doc/git-expunge/alias.sh b/doc/git-expunge/alias.sh new file mode 100644 index 00000000..5ff5986b --- /dev/null +++ b/doc/git-expunge/alias.sh @@ -0,0 +1 @@ +f() { git filter-branch --force --index-filter "git rm --cached --ignore-unmatch $1" --prune-empty --tag-name-filter "cat" -- --all ; }; f diff --git a/doc/git-f/alias.txt b/doc/git-f/alias.txt new file mode 100644 index 00000000..bad6ace5 --- /dev/null +++ b/doc/git-f/alias.txt @@ -0,0 +1 @@ +fetch diff --git a/doc/git-fa/alias.txt b/doc/git-fa/alias.txt new file mode 100644 index 00000000..8bd0911d --- /dev/null +++ b/doc/git-fa/alias.txt @@ -0,0 +1 @@ +fetch --all diff --git a/doc/git-fav/alias.txt b/doc/git-fav/alias.txt new file mode 100644 index 00000000..5ae353d1 --- /dev/null +++ b/doc/git-fav/alias.txt @@ -0,0 +1 @@ +fetch --all --verbose diff --git a/doc/git-fixup/alias.sh b/doc/git-fixup/alias.sh new file mode 100644 index 00000000..7f704195 --- /dev/null +++ b/doc/git-fixup/alias.sh @@ -0,0 +1 @@ +f() { TARGET="$(git rev-parse "$1")"; git commit --fixup="$TARGET" && GIT_EDITOR=true git rebase --interactive --autosquash "$TARGET"~; }; f diff --git a/doc/git-g/alias.txt b/doc/git-g/alias.txt new file mode 100644 index 00000000..bdbac168 --- /dev/null +++ b/doc/git-g/alias.txt @@ -0,0 +1 @@ +grep diff --git a/doc/git-get/alias.sh b/doc/git-get/alias.sh new file mode 100644 index 00000000..d4a022d1 --- /dev/null +++ b/doc/git-get/alias.sh @@ -0,0 +1 @@ +git fetch --prune && git pull --rebase && git submodule update --init --recursive diff --git a/doc/git-gg/alias.txt b/doc/git-gg/alias.txt new file mode 100644 index 00000000..9788d8d6 --- /dev/null +++ b/doc/git-gg/alias.txt @@ -0,0 +1 @@ +grep-group diff --git a/doc/git-gitk-conflict/alias.sh b/doc/git-gitk-conflict/alias.sh new file mode 100644 index 00000000..0d00da13 --- /dev/null +++ b/doc/git-gitk-conflict/alias.sh @@ -0,0 +1 @@ +gitk --left-right HEAD...MERGE_HEAD diff --git a/doc/git-gitk-history-all/alias.sh b/doc/git-gitk-history-all/alias.sh new file mode 100644 index 00000000..b0266021 --- /dev/null +++ b/doc/git-gitk-history-all/alias.sh @@ -0,0 +1 @@ +gitk --all "$(git fsck | awk '/dangling commit/ {print $3}')" diff --git a/doc/git-gn/alias.txt b/doc/git-gn/alias.txt new file mode 100644 index 00000000..94f5ec9a --- /dev/null +++ b/doc/git-gn/alias.txt @@ -0,0 +1 @@ +grep -n diff --git a/doc/git-graphviz/alias.sh b/doc/git-graphviz/alias.sh new file mode 100644 index 00000000..4ed272a4 --- /dev/null +++ b/doc/git-graphviz/alias.sh @@ -0,0 +1 @@ +f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' "$@" | sed 's/[0-9a-f][0-9a-f]*/"&"/g' ; echo '}'; }; f diff --git a/doc/git-grep-ack/alias.txt b/doc/git-grep-ack/alias.txt new file mode 100644 index 00000000..7a26b8ec --- /dev/null +++ b/doc/git-grep-ack/alias.txt @@ -0,0 +1 @@ +-c color.grep.linenumber="bold yellow" -c color.grep.filename="bold green" -c color.grep.match="reverse yellow" grep --break --heading --line-number diff --git a/doc/git-grep-all/alias.sh b/doc/git-grep-all/alias.sh new file mode 100644 index 00000000..a5a8aaf1 --- /dev/null +++ b/doc/git-grep-all/alias.sh @@ -0,0 +1 @@ +f() { git rev-list --all | xargs git grep "$@"; }; f diff --git a/doc/git-grep-group/alias.txt b/doc/git-grep-group/alias.txt new file mode 100644 index 00000000..deac0c63 --- /dev/null +++ b/doc/git-grep-group/alias.txt @@ -0,0 +1 @@ +grep --break --heading --line-number --color diff --git a/doc/git-heads/alias.sh b/doc/git-heads/alias.sh new file mode 100644 index 00000000..19958443 --- /dev/null +++ b/doc/git-heads/alias.sh @@ -0,0 +1 @@ +git log origin/main.. --format='%Cred%h%Creset;%C(yellow)%an%Creset;%H;%Cblue%f%Creset' | git name-rev --stdin --always --name-only | column -t -s';' diff --git a/doc/git-hew-dry-run/alias.sh b/doc/git-hew-dry-run/alias.sh new file mode 100644 index 00000000..8a411bb0 --- /dev/null +++ b/doc/git-hew-dry-run/alias.sh @@ -0,0 +1 @@ +git hew-local-dry-run "$@" && git hew-remote-dry-run "$@" # diff --git a/doc/git-hew-local-dry-run/alias.sh b/doc/git-hew-local-dry-run/alias.sh new file mode 100644 index 00000000..60618c07 --- /dev/null +++ b/doc/git-hew-local-dry-run/alias.sh @@ -0,0 +1 @@ +f() { commit=${1:-$(git current-branch)}; git branch --merged "$commit" | grep -v "^[[:space:]]*\*[[:space:]]*$commit$" ; }; f "$@" diff --git a/doc/git-hew-local/alias.sh b/doc/git-hew-local/alias.sh new file mode 100644 index 00000000..30fee6cd --- /dev/null +++ b/doc/git-hew-local/alias.sh @@ -0,0 +1 @@ +f() { git hew-local-dry-run "$@" | xargs git branch --delete ; }; f "$@" diff --git a/doc/git-hew-remote-dry-run/alias.sh b/doc/git-hew-remote-dry-run/alias.sh new file mode 100644 index 00000000..3e406db0 --- /dev/null +++ b/doc/git-hew-remote-dry-run/alias.sh @@ -0,0 +1 @@ +f() { commit=${1:-$(git upstream-branch)}; git branch --remotes --merged "$commit" | grep -v "^[[:space:]]*origin/$commit$" | sed 's#[[:space:]]*origin/##' ; }; f "$@" diff --git a/doc/git-hew-remote/alias.sh b/doc/git-hew-remote/alias.sh new file mode 100644 index 00000000..1e6b5e3d --- /dev/null +++ b/doc/git-hew-remote/alias.sh @@ -0,0 +1 @@ +f() { git hew-remote-dry-run "$@" | xargs -I% git push origin :% 2>&1 ; }; f "$@" diff --git a/doc/git-hew/alias.sh b/doc/git-hew/alias.sh new file mode 100644 index 00000000..8bb70d6c --- /dev/null +++ b/doc/git-hew/alias.sh @@ -0,0 +1 @@ +git hew-local "$@" && git hew-remote "$@" # diff --git a/doc/git-ignore/alias.sh b/doc/git-ignore/alias.sh new file mode 100644 index 00000000..4b9bdc83 --- /dev/null +++ b/doc/git-ignore/alias.sh @@ -0,0 +1 @@ +git status | grep -P "^\t" | grep -vF .gitignore | sed "s/^\t//" >> .gitignore diff --git a/doc/git-inbound/alias.sh b/doc/git-inbound/alias.sh new file mode 100644 index 00000000..4b689a7f --- /dev/null +++ b/doc/git-inbound/alias.sh @@ -0,0 +1 @@ +git remote update --prune diff --git a/doc/git-init-empty/alias.sh b/doc/git-init-empty/alias.sh new file mode 100644 index 00000000..bdeec4bd --- /dev/null +++ b/doc/git-init-empty/alias.sh @@ -0,0 +1 @@ +f() { git init && git commit --allow-empty --allow-empty-message --message ''; }; f diff --git a/doc/git-initer/alias.txt b/doc/git-initer/alias.txt new file mode 100644 index 00000000..11a098a0 --- /dev/null +++ b/doc/git-initer/alias.txt @@ -0,0 +1 @@ +init-empty diff --git a/doc/git-intercommit/alias.sh b/doc/git-intercommit/alias.sh new file mode 100644 index 00000000..3453f8c3 --- /dev/null +++ b/doc/git-intercommit/alias.sh @@ -0,0 +1 @@ +sh -c 'git show $1 > .git/commit1 && git show $2 > .git/commit2 && interdiff .git/commit[12] | less -FRS' - diff --git a/doc/git-issues/alias.sh b/doc/git-issues/alias.sh new file mode 100644 index 00000000..34090e2f --- /dev/null +++ b/doc/git-issues/alias.sh @@ -0,0 +1 @@ +sh -c "git log $1 --oneline | grep -o \"ISSUE-[0-9]\+\" | sort -u" diff --git a/doc/git-l/alias.txt b/doc/git-l/alias.txt new file mode 100644 index 00000000..6bfe6b19 --- /dev/null +++ b/doc/git-l/alias.txt @@ -0,0 +1 @@ +log diff --git a/doc/git-last-tag/alias.txt b/doc/git-last-tag/alias.txt new file mode 100644 index 00000000..d27adb6c --- /dev/null +++ b/doc/git-last-tag/alias.txt @@ -0,0 +1 @@ +describe --tags --abbrev=0 diff --git a/doc/git-last-tagged/alias.sh b/doc/git-last-tagged/alias.sh new file mode 100644 index 00000000..9ce058c7 --- /dev/null +++ b/doc/git-last-tagged/alias.sh @@ -0,0 +1 @@ +git describe --tags "$(git rev-list --tags --max-count=1)" diff --git a/doc/git-lfp/alias.txt b/doc/git-lfp/alias.txt new file mode 100644 index 00000000..7ae98657 --- /dev/null +++ b/doc/git-lfp/alias.txt @@ -0,0 +1 @@ +log --first-parent diff --git a/doc/git-lg/alias.txt b/doc/git-lg/alias.txt new file mode 100644 index 00000000..0236882b --- /dev/null +++ b/doc/git-lg/alias.txt @@ -0,0 +1 @@ +log --graph diff --git a/doc/git-ll/alias.txt b/doc/git-ll/alias.txt new file mode 100644 index 00000000..c6e1c832 --- /dev/null +++ b/doc/git-ll/alias.txt @@ -0,0 +1 @@ +log-list diff --git a/doc/git-lll/alias.txt b/doc/git-lll/alias.txt new file mode 100644 index 00000000..06d7a211 --- /dev/null +++ b/doc/git-lll/alias.txt @@ -0,0 +1 @@ +log-list-long diff --git a/doc/git-lo/alias.txt b/doc/git-lo/alias.txt new file mode 100644 index 00000000..bc6fdf4d --- /dev/null +++ b/doc/git-lo/alias.txt @@ -0,0 +1 @@ +log --oneline diff --git a/doc/git-log-1-day/alias.txt b/doc/git-log-1-day/alias.txt new file mode 100644 index 00000000..3d710691 --- /dev/null +++ b/doc/git-log-1-day/alias.txt @@ -0,0 +1 @@ +log --since=1-day-ago diff --git a/doc/git-log-1-hour/alias.txt b/doc/git-log-1-hour/alias.txt new file mode 100644 index 00000000..0f0179cf --- /dev/null +++ b/doc/git-log-1-hour/alias.txt @@ -0,0 +1 @@ +log --since=1-hour-ago diff --git a/doc/git-log-1-month/alias.txt b/doc/git-log-1-month/alias.txt new file mode 100644 index 00000000..9250c2c4 --- /dev/null +++ b/doc/git-log-1-month/alias.txt @@ -0,0 +1 @@ +log --since=1-month-ago diff --git a/doc/git-log-1-week/alias.txt b/doc/git-log-1-week/alias.txt new file mode 100644 index 00000000..ba47156b --- /dev/null +++ b/doc/git-log-1-week/alias.txt @@ -0,0 +1 @@ +log --since=1-week-ago diff --git a/doc/git-log-1-year/alias.txt b/doc/git-log-1-year/alias.txt new file mode 100644 index 00000000..1e893ea2 --- /dev/null +++ b/doc/git-log-1-year/alias.txt @@ -0,0 +1 @@ +log --since=1-year-ago diff --git a/doc/git-log-date-first/alias.sh b/doc/git-log-date-first/alias.sh new file mode 100644 index 00000000..e5911070 --- /dev/null +++ b/doc/git-log-date-first/alias.sh @@ -0,0 +1 @@ +git log --date-order --format=%cI | tail -1 diff --git a/doc/git-log-date-last/alias.txt b/doc/git-log-date-last/alias.txt new file mode 100644 index 00000000..95ab006b --- /dev/null +++ b/doc/git-log-date-last/alias.txt @@ -0,0 +1 @@ +log -1 --date-order --format=%cI diff --git a/doc/git-log-fetched/alias.txt b/doc/git-log-fetched/alias.txt new file mode 100644 index 00000000..0942cc44 --- /dev/null +++ b/doc/git-log-fetched/alias.txt @@ -0,0 +1 @@ +log --oneline HEAD..origin/main diff --git a/doc/git-log-fresh/alias.txt b/doc/git-log-fresh/alias.txt new file mode 100644 index 00000000..1c3b9c9c --- /dev/null +++ b/doc/git-log-fresh/alias.txt @@ -0,0 +1 @@ +log ORIG_HEAD.. --stat --no-merges diff --git a/doc/git-log-graph/alias.txt b/doc/git-log-graph/alias.txt new file mode 100644 index 00000000..26d5e2eb --- /dev/null +++ b/doc/git-log-graph/alias.txt @@ -0,0 +1 @@ +log --graph --all --oneline --decorate diff --git a/doc/git-log-list-long/alias.txt b/doc/git-log-list-long/alias.txt new file mode 100644 index 00000000..f8bbf08f --- /dev/null +++ b/doc/git-log-list-long/alias.txt @@ -0,0 +1 @@ +log --graph --topo-order --date=iso8601-strict --no-abbrev-commit --decorate --all --boundary --pretty=format:'%Cblue%ad %C(auto)%h%Creset -%C(auto)%d%Creset %s %Cblue[%aN <%aE>]%Creset %Cblue%G?%Creset' diff --git a/doc/git-log-list/alias.txt b/doc/git-log-list/alias.txt new file mode 100644 index 00000000..5e1361cc --- /dev/null +++ b/doc/git-log-list/alias.txt @@ -0,0 +1 @@ +log --graph --topo-order --date=short --abbrev-commit --decorate --all --boundary --pretty=format:'%Cblue%ad %C(auto)%h%Creset -%C(auto)%d%Creset %s %Cblue[%aN]%Creset %Cblue%G?%Creset' diff --git a/doc/git-log-local/alias.txt b/doc/git-log-local/alias.txt new file mode 100644 index 00000000..02616ad2 --- /dev/null +++ b/doc/git-log-local/alias.txt @@ -0,0 +1 @@ +log --oneline origin..HEAD diff --git a/doc/git-log-local/index.md b/doc/git-log-local/index.md new file mode 100644 index 00000000..afb20506 --- /dev/null +++ b/doc/git-log-local/index.md @@ -0,0 +1,3 @@ +# git log-local + + diff --git a/doc/git-log-my-day/alias.sh b/doc/git-log-my-day/alias.sh new file mode 100644 index 00000000..4c3ca9c9 --- /dev/null +++ b/doc/git-log-my-day/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" --since=1-day-ago diff --git a/doc/git-log-my-hour/alias.sh b/doc/git-log-my-hour/alias.sh new file mode 100644 index 00000000..e0257953 --- /dev/null +++ b/doc/git-log-my-hour/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" --since=1-hour-ago diff --git a/doc/git-log-my-month/alias.sh b/doc/git-log-my-month/alias.sh new file mode 100644 index 00000000..a37ae08d --- /dev/null +++ b/doc/git-log-my-month/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" --since=1-month-ago diff --git a/doc/git-log-my-week/alias.sh b/doc/git-log-my-week/alias.sh new file mode 100644 index 00000000..dbe5d5d4 --- /dev/null +++ b/doc/git-log-my-week/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" --since=1-week-ago diff --git a/doc/git-log-my-year/alias.sh b/doc/git-log-my-year/alias.sh new file mode 100644 index 00000000..f5a7afd6 --- /dev/null +++ b/doc/git-log-my-year/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" --since=1-year-ago diff --git a/doc/git-log-my/alias.sh b/doc/git-log-my/alias.sh new file mode 100644 index 00000000..308c034c --- /dev/null +++ b/doc/git-log-my/alias.sh @@ -0,0 +1 @@ +git log --author "$(git config user.email)" diff --git a/doc/git-log-of-count-and-day-of-week/alias.sh b/doc/git-log-of-count-and-day-of-week/alias.sh new file mode 100644 index 00000000..7b53a8e8 --- /dev/null +++ b/doc/git-log-of-count-and-day-of-week/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%u" "$@"; }; f diff --git a/doc/git-log-of-count-and-day/alias.sh b/doc/git-log-of-count-and-day/alias.sh new file mode 100644 index 00000000..bf2967d0 --- /dev/null +++ b/doc/git-log-of-count-and-day/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%Y-%m-%d" "$@" ; }; f diff --git a/doc/git-log-of-count-and-email/alias.sh b/doc/git-log-of-count-and-email/alias.sh new file mode 100644 index 00000000..95bd8349 --- /dev/null +++ b/doc/git-log-of-count-and-email/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format "%aE" "$@"; }; f diff --git a/doc/git-log-of-count-and-format-with-date/alias.sh b/doc/git-log-of-count-and-format-with-date/alias.sh new file mode 100644 index 00000000..429f0cfa --- /dev/null +++ b/doc/git-log-of-count-and-format-with-date/alias.sh @@ -0,0 +1 @@ +f() { format="$1"; shift; date_format="$1"; shift; git log "$@" --format=oneline --format="$format" --date=format:"$date_format" | awk '{a[$0]++}END{for(i in a){print a[i], int((a[i]/NR)*100) "%", i}}' | sort -nr; }; f diff --git a/doc/git-log-of-count-and-format/alias.sh b/doc/git-log-of-count-and-format/alias.sh new file mode 100644 index 00000000..2e27f3eb --- /dev/null +++ b/doc/git-log-of-count-and-format/alias.sh @@ -0,0 +1 @@ +f() { format="$1"; shift; git log "$@" --format=oneline --format="$format" | awk '{a[$0]++}END{for(i in a){print a[i], int((a[i]/NR)*100) "%", i}}' | sort -nr; }; f diff --git a/doc/git-log-of-count-and-hour-of-day/alias.sh b/doc/git-log-of-count-and-hour-of-day/alias.sh new file mode 100644 index 00000000..cfa3fb8a --- /dev/null +++ b/doc/git-log-of-count-and-hour-of-day/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%H" "$@"; }; f diff --git a/doc/git-log-of-count-and-hour/alias.sh b/doc/git-log-of-count-and-hour/alias.sh new file mode 100644 index 00000000..a0e970f2 --- /dev/null +++ b/doc/git-log-of-count-and-hour/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%Y-%m-%dT%H" "$@" ; }; f diff --git a/doc/git-log-of-count-and-month/alias.sh b/doc/git-log-of-count-and-month/alias.sh new file mode 100644 index 00000000..f5821ccb --- /dev/null +++ b/doc/git-log-of-count-and-month/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%Y-%m" "$@" ; }; f diff --git a/doc/git-log-of-count-and-week-of-year/alias.sh b/doc/git-log-of-count-and-week-of-year/alias.sh new file mode 100644 index 00000000..fc6cb67f --- /dev/null +++ b/doc/git-log-of-count-and-week-of-year/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%V" "$@"; }; f diff --git a/doc/git-log-of-count-and-week/alias.sh b/doc/git-log-of-count-and-week/alias.sh new file mode 100644 index 00000000..d64634ab --- /dev/null +++ b/doc/git-log-of-count-and-week/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%Y#%V" "$@"; }; f diff --git a/doc/git-log-of-count-and-year/alias.sh b/doc/git-log-of-count-and-year/alias.sh new file mode 100644 index 00000000..4857e325 --- /dev/null +++ b/doc/git-log-of-count-and-year/alias.sh @@ -0,0 +1 @@ +f() { git log-of-count-and-format-with-date "%ad" "%Y" "$@" ; }; f diff --git a/doc/git-log-of-day-and-count/alias.sh b/doc/git-log-of-day-and-count/alias.sh new file mode 100644 index 00000000..307882e8 --- /dev/null +++ b/doc/git-log-of-day-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%Y-%m-%d" "$@" ; }; f diff --git a/doc/git-log-of-day-of-week-and-count/alias.sh b/doc/git-log-of-day-of-week-and-count/alias.sh new file mode 100644 index 00000000..4b325aae --- /dev/null +++ b/doc/git-log-of-day-of-week-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%u" "$@"; }; f diff --git a/doc/git-log-of-email-and-count/alias.sh b/doc/git-log-of-email-and-count/alias.sh new file mode 100644 index 00000000..89d5f10f --- /dev/null +++ b/doc/git-log-of-email-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count "%aE" "$@"; }; f diff --git a/doc/git-log-of-format-and-count-with-date/alias.sh b/doc/git-log-of-format-and-count-with-date/alias.sh new file mode 100644 index 00000000..f2a79ac6 --- /dev/null +++ b/doc/git-log-of-format-and-count-with-date/alias.sh @@ -0,0 +1 @@ +f() { format="$1"; shift; date_format="$1"; shift; git log "$@" --format=oneline --format="$format" --date=format:"$date_format" | awk '{a[$0]++}END{for(i in a){print i, a[i], int((a[i]/NR)*100) "%"}}' | sort -r; }; f diff --git a/doc/git-log-of-format-and-count/alias.sh b/doc/git-log-of-format-and-count/alias.sh new file mode 100644 index 00000000..55e063fe --- /dev/null +++ b/doc/git-log-of-format-and-count/alias.sh @@ -0,0 +1 @@ +f() { format="$1"; shift; git log "$@" --format=oneline --format="$format" | awk '{a[$0]++}END{for(i in a){print i, a[i], int((a[i]/NR)*100) "%"}}' | sort; }; f diff --git a/doc/git-log-of-hour-and-count/alias.sh b/doc/git-log-of-hour-and-count/alias.sh new file mode 100644 index 00000000..66d85b96 --- /dev/null +++ b/doc/git-log-of-hour-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%Y-%m-%dT%H" "$@" ; }; f diff --git a/doc/git-log-of-hour-of-day-and-count/alias.sh b/doc/git-log-of-hour-of-day-and-count/alias.sh new file mode 100644 index 00000000..7fd60693 --- /dev/null +++ b/doc/git-log-of-hour-of-day-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%H" "$@"; }; f diff --git a/doc/git-log-of-month-and-count/alias.sh b/doc/git-log-of-month-and-count/alias.sh new file mode 100644 index 00000000..afbb247c --- /dev/null +++ b/doc/git-log-of-month-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%Y-%m" "$@" ; }; f diff --git a/doc/git-log-of-week-and-count/alias.sh b/doc/git-log-of-week-and-count/alias.sh new file mode 100644 index 00000000..bd303252 --- /dev/null +++ b/doc/git-log-of-week-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%Y#%V" "$@"; }; f diff --git a/doc/git-log-of-week-of-year-and-count/alias.sh b/doc/git-log-of-week-of-year-and-count/alias.sh new file mode 100644 index 00000000..283ceda4 --- /dev/null +++ b/doc/git-log-of-week-of-year-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%V" "$@"; }; f diff --git a/doc/git-log-of-year-and-count/alias.sh b/doc/git-log-of-year-and-count/alias.sh new file mode 100644 index 00000000..f82b3338 --- /dev/null +++ b/doc/git-log-of-year-and-count/alias.sh @@ -0,0 +1 @@ +f() { git log-of-format-and-count-with-date "%ad" "%Y" "$@" ; }; f diff --git a/doc/git-log-refs/alias.txt b/doc/git-log-refs/alias.txt new file mode 100644 index 00000000..acd766b5 --- /dev/null +++ b/doc/git-log-refs/alias.txt @@ -0,0 +1 @@ +log --all --graph --decorate --oneline --simplify-by-decoration --no-merges diff --git a/doc/git-log-timeline/alias.txt b/doc/git-log-timeline/alias.txt new file mode 100644 index 00000000..b36d3784 --- /dev/null +++ b/doc/git-log-timeline/alias.txt @@ -0,0 +1 @@ +log --format='%h %an %ar - %s' diff --git a/doc/git-lor/alias.txt b/doc/git-lor/alias.txt new file mode 100644 index 00000000..889af0db --- /dev/null +++ b/doc/git-lor/alias.txt @@ -0,0 +1 @@ +log --oneline --reverse diff --git a/doc/git-lp/alias.txt b/doc/git-lp/alias.txt new file mode 100644 index 00000000..73a2e13c --- /dev/null +++ b/doc/git-lp/alias.txt @@ -0,0 +1 @@ +log --patch diff --git a/doc/git-ls/alias.txt b/doc/git-ls/alias.txt new file mode 100644 index 00000000..88ac81a8 --- /dev/null +++ b/doc/git-ls/alias.txt @@ -0,0 +1 @@ +ls-files diff --git a/doc/git-lsd/alias.txt b/doc/git-lsd/alias.txt new file mode 100644 index 00000000..58eda6c3 --- /dev/null +++ b/doc/git-lsd/alias.txt @@ -0,0 +1 @@ +ls-files --debug diff --git a/doc/git-lsfn/alias.txt b/doc/git-lsfn/alias.txt new file mode 100644 index 00000000..bfefbe4a --- /dev/null +++ b/doc/git-lsfn/alias.txt @@ -0,0 +1 @@ +ls-files --full-name diff --git a/doc/git-lsio/alias.txt b/doc/git-lsio/alias.txt new file mode 100644 index 00000000..100d4335 --- /dev/null +++ b/doc/git-lsio/alias.txt @@ -0,0 +1 @@ +ls-files --ignored --others --exclude-standard diff --git a/doc/git-lto/alias.txt b/doc/git-lto/alias.txt new file mode 100644 index 00000000..c7add928 --- /dev/null +++ b/doc/git-lto/alias.txt @@ -0,0 +1 @@ +log --topo-order diff --git a/doc/git-m/alias.txt b/doc/git-m/alias.txt new file mode 100644 index 00000000..a00af07a --- /dev/null +++ b/doc/git-m/alias.txt @@ -0,0 +1 @@ +merge diff --git a/doc/git-ma/alias.txt b/doc/git-ma/alias.txt new file mode 100644 index 00000000..36114d43 --- /dev/null +++ b/doc/git-ma/alias.txt @@ -0,0 +1 @@ +merge --abort diff --git a/doc/git-mainly/alias.sh b/doc/git-mainly/alias.sh new file mode 100644 index 00000000..a2343874 --- /dev/null +++ b/doc/git-mainly/alias.sh @@ -0,0 +1 @@ +git checkout "$(git default-branch)" && git fetch origin --prune && git reset --hard "origin/$(git default-branch)" diff --git a/doc/git-mc/alias.txt b/doc/git-mc/alias.txt new file mode 100644 index 00000000..9ad5ee7e --- /dev/null +++ b/doc/git-mc/alias.txt @@ -0,0 +1 @@ +merge --continue diff --git a/doc/git-merge-span-diff/alias.sh b/doc/git-merge-span-diff/alias.sh new file mode 100644 index 00000000..6c04a98d --- /dev/null +++ b/doc/git-merge-span-diff/alias.sh @@ -0,0 +1 @@ +git diff "$(git merge-span ... "$1")" diff --git a/doc/git-merge-span-difftool/alias.sh b/doc/git-merge-span-difftool/alias.sh new file mode 100644 index 00000000..3f3f5a9b --- /dev/null +++ b/doc/git-merge-span-difftool/alias.sh @@ -0,0 +1 @@ +git difftool "$(git merge-span ... "$1")" diff --git a/doc/git-merge-span-log/alias.sh b/doc/git-merge-span-log/alias.sh new file mode 100644 index 00000000..ea683bd1 --- /dev/null +++ b/doc/git-merge-span-log/alias.sh @@ -0,0 +1 @@ +git log "$(git merge-span .. "$1")" diff --git a/doc/git-merge-span/alias.sh b/doc/git-merge-span/alias.sh new file mode 100644 index 00000000..077c7210 --- /dev/null +++ b/doc/git-merge-span/alias.sh @@ -0,0 +1 @@ +f() { echo "$(git log -1 "$2" --merges --pretty=format:%P | cut -d' ' -f1)$1$(git log -1 "$2" --merges --pretty=format:%P | cut -d' ' -f2)"; }; f diff --git a/doc/git-mncnf/alias.txt b/doc/git-mncnf/alias.txt new file mode 100644 index 00000000..d25004bb --- /dev/null +++ b/doc/git-mncnf/alias.txt @@ -0,0 +1 @@ +merge --no-commit --no-ff diff --git a/doc/git-move-alias/alias.sh b/doc/git-move-alias/alias.sh new file mode 100644 index 00000000..cbbf4b07 --- /dev/null +++ b/doc/git-move-alias/alias.sh @@ -0,0 +1 @@ +f() { if [ $# != 3 ]; then echo "Usage: git move-alias ( --local | --global ) "; echo "Error: this command needs 3 arguments."; return 2; fi; if [ "$2" = "$3" ]; then echo "The alias names are identical, thus no change happened."; return 3; fi; if [ -z "$(git config "$1" --get alias."$2")" ]; then echo "Alias '$2' does not exist, thus no change happened."; return 4; fi; if [ -n "$(git config "$1" --get alias."$3")" ]; then echo "Alias '$3' already exists, thus no change happened."; return 5; fi; git config "$1" alias."$3" "$(git config "$1" --get alias."$2")" && git config "$1" --unset alias."$2" && return 0; echo "Usage: git move-alias ( --local | --global ) "; echo "Error: unknown failure."; return 1; };f diff --git a/doc/git-o/alias.txt b/doc/git-o/alias.txt new file mode 100644 index 00000000..72c48c69 --- /dev/null +++ b/doc/git-o/alias.txt @@ -0,0 +1 @@ +checkout diff --git a/doc/git-optimizer/alias.sh b/doc/git-optimizer/alias.sh new file mode 100644 index 00000000..fe878651 --- /dev/null +++ b/doc/git-optimizer/alias.sh @@ -0,0 +1 @@ +git pruner diff --git a/doc/git-orphans/alias.txt b/doc/git-orphans/alias.txt new file mode 100644 index 00000000..f918ea19 --- /dev/null +++ b/doc/git-orphans/alias.txt @@ -0,0 +1 @@ +fsck --full diff --git a/doc/git-ours/alias.sh b/doc/git-ours/alias.sh new file mode 100644 index 00000000..badd4e7f --- /dev/null +++ b/doc/git-ours/alias.sh @@ -0,0 +1 @@ +f() { git checkout --ours "$@" && git add "$@"; }; f diff --git a/doc/git-outbound/alias.txt b/doc/git-outbound/alias.txt new file mode 100644 index 00000000..b17ce342 --- /dev/null +++ b/doc/git-outbound/alias.txt @@ -0,0 +1 @@ +log @{upstream}.. diff --git a/doc/git-p/alias.txt b/doc/git-p/alias.txt new file mode 100644 index 00000000..78a4bc3e --- /dev/null +++ b/doc/git-p/alias.txt @@ -0,0 +1 @@ +pull diff --git a/doc/git-panic/alias.sh b/doc/git-panic/alias.sh new file mode 100644 index 00000000..07922799 --- /dev/null +++ b/doc/git-panic/alias.sh @@ -0,0 +1 @@ +tar cvf ../panic.tar -- * diff --git a/doc/git-pf/alias.txt b/doc/git-pf/alias.txt new file mode 100644 index 00000000..fba97a8d --- /dev/null +++ b/doc/git-pf/alias.txt @@ -0,0 +1 @@ +pull --ff-only diff --git a/doc/git-pr/alias.txt b/doc/git-pr/alias.txt new file mode 100644 index 00000000..ee8f08ab --- /dev/null +++ b/doc/git-pr/alias.txt @@ -0,0 +1 @@ +pull --rebase diff --git a/doc/git-prp/alias.txt b/doc/git-prp/alias.txt new file mode 100644 index 00000000..e564d3d6 --- /dev/null +++ b/doc/git-prp/alias.txt @@ -0,0 +1 @@ +pull --rebase=preserve diff --git a/doc/git-pruner/alias.sh b/doc/git-pruner/alias.sh new file mode 100644 index 00000000..579d5933 --- /dev/null +++ b/doc/git-pruner/alias.sh @@ -0,0 +1 @@ +git prune --expire=now; git reflog expire --expire-unreachable=now --rewrite --all diff --git a/doc/git-publish/alias.sh b/doc/git-publish/alias.sh new file mode 100644 index 00000000..0879c082 --- /dev/null +++ b/doc/git-publish/alias.sh @@ -0,0 +1 @@ +git push --set-upstream origin "$(git current-branch)" diff --git a/doc/git-pull1/alias.sh b/doc/git-pull1/alias.sh new file mode 100644 index 00000000..8ff7daee --- /dev/null +++ b/doc/git-pull1/alias.sh @@ -0,0 +1 @@ +git pull origin "$(git current-branch)" diff --git a/doc/git-push1/alias.sh b/doc/git-push1/alias.sh new file mode 100644 index 00000000..3d9bcac4 --- /dev/null +++ b/doc/git-push1/alias.sh @@ -0,0 +1 @@ +git push origin "$(git current-branch)" diff --git a/doc/git-pushy/alias.sh b/doc/git-pushy/alias.sh new file mode 100644 index 00000000..1b85e039 --- /dev/null +++ b/doc/git-pushy/alias.sh @@ -0,0 +1 @@ +git push --force-with-lease diff --git a/doc/git-put/alias.sh b/doc/git-put/alias.sh new file mode 100644 index 00000000..2ac5796d --- /dev/null +++ b/doc/git-put/alias.sh @@ -0,0 +1 @@ +git commit --all && git push diff --git a/doc/git-rb/alias.txt b/doc/git-rb/alias.txt new file mode 100644 index 00000000..97ef86e1 --- /dev/null +++ b/doc/git-rb/alias.txt @@ -0,0 +1 @@ +rebase diff --git a/doc/git-rba/alias.txt b/doc/git-rba/alias.txt new file mode 100644 index 00000000..2c698e7c --- /dev/null +++ b/doc/git-rba/alias.txt @@ -0,0 +1 @@ +rebase --abort diff --git a/doc/git-rbc/alias.txt b/doc/git-rbc/alias.txt new file mode 100644 index 00000000..21c60c4f --- /dev/null +++ b/doc/git-rbc/alias.txt @@ -0,0 +1 @@ +rebase --continue diff --git a/doc/git-rbi/alias.txt b/doc/git-rbi/alias.txt new file mode 100644 index 00000000..aabe299e --- /dev/null +++ b/doc/git-rbi/alias.txt @@ -0,0 +1 @@ +rebase --interactive diff --git a/doc/git-rbiu/alias.txt b/doc/git-rbiu/alias.txt new file mode 100644 index 00000000..5bb7ee8e --- /dev/null +++ b/doc/git-rbiu/alias.txt @@ -0,0 +1 @@ +rebase --interactive @{upstream} diff --git a/doc/git-rbs/alias.txt b/doc/git-rbs/alias.txt new file mode 100644 index 00000000..47fe0849 --- /dev/null +++ b/doc/git-rbs/alias.txt @@ -0,0 +1 @@ +rebase --skip diff --git a/doc/git-rebase-branch/alias.sh b/doc/git-rebase-branch/alias.sh new file mode 100644 index 00000000..3eb47125 --- /dev/null +++ b/doc/git-rebase-branch/alias.sh @@ -0,0 +1 @@ +f() { git rebase --interactive "$(git merge-base "$(git default-branch)") HEAD)"; }; f diff --git a/doc/git-rebase-recent/alias.sh b/doc/git-rebase-recent/alias.sh new file mode 100644 index 00000000..9e69fb6d --- /dev/null +++ b/doc/git-rebase-recent/alias.sh @@ -0,0 +1 @@ +git rebase --interactive "$(git remote-ref)" diff --git a/doc/git-refs-by-date/alias.txt b/doc/git-refs-by-date/alias.txt new file mode 100644 index 00000000..299ae290 --- /dev/null +++ b/doc/git-refs-by-date/alias.txt @@ -0,0 +1 @@ +for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) (objectname:short) %(contents:subject)' diff --git a/doc/git-reincarnate/alias.sh b/doc/git-reincarnate/alias.sh new file mode 100644 index 00000000..e02c6c4f --- /dev/null +++ b/doc/git-reincarnate/alias.sh @@ -0,0 +1 @@ +f() { [ $# -gt 0 ] && git checkout "$1" && git unpublish && git checkout main && git branch -D "$1" && git checkout -b "$1" && git publish; }; f diff --git a/doc/git-remote-ref/alias.sh b/doc/git-remote-ref/alias.sh new file mode 100644 index 00000000..83e3d6ba --- /dev/null +++ b/doc/git-remote-ref/alias.sh @@ -0,0 +1 @@ + local_ref="$(git symbolic-ref HEAD)"; local_name="${local_ref##refs/heads/}"; remote="$(git config branch."#local_name".remote || echo origin)"; remote_ref="$(git config branch."$local_name".merge)"; remote_name="${remote_ref##refs/heads/}"; echo "remotes/$remote/$remote_name" # diff --git a/doc/git-remotes-prune/alias.sh b/doc/git-remotes-prune/alias.sh new file mode 100644 index 00000000..dd010016 --- /dev/null +++ b/doc/git-remotes-prune/alias.sh @@ -0,0 +1 @@ +git remote | xargs -n 1 git remote prune diff --git a/doc/git-remotes-push/alias.sh b/doc/git-remotes-push/alias.sh new file mode 100644 index 00000000..b364cd57 --- /dev/null +++ b/doc/git-remotes-push/alias.sh @@ -0,0 +1 @@ +git remote | xargs -I% -n1 git push % diff --git a/doc/git-repacker/alias.txt b/doc/git-repacker/alias.txt new file mode 100644 index 00000000..67f6732f --- /dev/null +++ b/doc/git-repacker/alias.txt @@ -0,0 +1 @@ +repack -a -d -f --depth=300 --window=300 --window-memory=1g diff --git a/doc/git-reset-commit-hard-clean/alias.sh b/doc/git-reset-commit-hard-clean/alias.sh new file mode 100644 index 00000000..d607f23d --- /dev/null +++ b/doc/git-reset-commit-hard-clean/alias.sh @@ -0,0 +1 @@ +git reset --hard HEAD~1 && git clean -fd diff --git a/doc/git-reset-commit-hard/alias.txt b/doc/git-reset-commit-hard/alias.txt new file mode 100644 index 00000000..f4a19300 --- /dev/null +++ b/doc/git-reset-commit-hard/alias.txt @@ -0,0 +1 @@ +reset --hard HEAD~1 diff --git a/doc/git-reset-commit/alias.txt b/doc/git-reset-commit/alias.txt new file mode 100644 index 00000000..3e7d6549 --- /dev/null +++ b/doc/git-reset-commit/alias.txt @@ -0,0 +1 @@ +reset --soft HEAD~1 diff --git a/doc/git-reset-to-pristine/alias.sh b/doc/git-reset-to-pristine/alias.sh new file mode 100644 index 00000000..64e97665 --- /dev/null +++ b/doc/git-reset-to-pristine/alias.sh @@ -0,0 +1 @@ +git reset --hard && git clean -ffdx diff --git a/doc/git-reset-to-upstream/alias.sh b/doc/git-reset-to-upstream/alias.sh new file mode 100644 index 00000000..392e5748 --- /dev/null +++ b/doc/git-reset-to-upstream/alias.sh @@ -0,0 +1 @@ +git reset --hard "$(git upstream-branch)" diff --git a/doc/git-rev-list-all-objects-by-size-and-name/alias.sh b/doc/git-rev-list-all-objects-by-size-and-name/alias.sh new file mode 100644 index 00000000..64070713 --- /dev/null +++ b/doc/git-rev-list-all-objects-by-size-and-name/alias.sh @@ -0,0 +1 @@ +git rev-list --all --objects | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | awk '/^blob/ {print substr($0,6)}' | sort --numeric-sort --key=2 diff --git a/doc/git-rev-list-all-objects-by-size/alias.sh b/doc/git-rev-list-all-objects-by-size/alias.sh new file mode 100644 index 00000000..1d6ef999 --- /dev/null +++ b/doc/git-rev-list-all-objects-by-size/alias.sh @@ -0,0 +1 @@ +git rev-list --all --objects | awk '{print $1}'| git cat-file --batch-check | grep -F blob | sort -k3nr diff --git a/doc/git-rl/alias.txt b/doc/git-rl/alias.txt new file mode 100644 index 00000000..ce4db970 --- /dev/null +++ b/doc/git-rl/alias.txt @@ -0,0 +1 @@ +reflog diff --git a/doc/git-rr/alias.txt b/doc/git-rr/alias.txt new file mode 100644 index 00000000..9c998f7b --- /dev/null +++ b/doc/git-rr/alias.txt @@ -0,0 +1 @@ +remote diff --git a/doc/git-rrp/alias.txt b/doc/git-rrp/alias.txt new file mode 100644 index 00000000..a98cdedc --- /dev/null +++ b/doc/git-rrp/alias.txt @@ -0,0 +1 @@ +remote prune diff --git a/doc/git-rrs/alias.txt b/doc/git-rrs/alias.txt new file mode 100644 index 00000000..b840c89d --- /dev/null +++ b/doc/git-rrs/alias.txt @@ -0,0 +1 @@ +remote show diff --git a/doc/git-rru/alias.txt b/doc/git-rru/alias.txt new file mode 100644 index 00000000..d786f998 --- /dev/null +++ b/doc/git-rru/alias.txt @@ -0,0 +1 @@ +remote update diff --git a/doc/git-rv/alias.txt b/doc/git-rv/alias.txt new file mode 100644 index 00000000..5de733ea --- /dev/null +++ b/doc/git-rv/alias.txt @@ -0,0 +1 @@ +revert diff --git a/doc/git-rvnc/alias.txt b/doc/git-rvnc/alias.txt new file mode 100644 index 00000000..5dd968fc --- /dev/null +++ b/doc/git-rvnc/alias.txt @@ -0,0 +1 @@ +revert --no-commit diff --git a/doc/git-s/alias.txt b/doc/git-s/alias.txt new file mode 100644 index 00000000..8be5547d --- /dev/null +++ b/doc/git-s/alias.txt @@ -0,0 +1 @@ +status diff --git a/doc/git-sb/alias.txt b/doc/git-sb/alias.txt new file mode 100644 index 00000000..eb554e0f --- /dev/null +++ b/doc/git-sb/alias.txt @@ -0,0 +1 @@ +show-branch diff --git a/doc/git-search-commits/alias.sh b/doc/git-search-commits/alias.sh new file mode 100644 index 00000000..4f46fcf5 --- /dev/null +++ b/doc/git-search-commits/alias.sh @@ -0,0 +1 @@ +f() { query="$1"; shift; git log -S"$query" "$@"; }; f "$@" diff --git a/doc/git-serve/alias.txt b/doc/git-serve/alias.txt new file mode 100644 index 00000000..0cddd2ca --- /dev/null +++ b/doc/git-serve/alias.txt @@ -0,0 +1 @@ +-c daemon.receivepack=true daemon --base-path=. --export-all --reuseaddr --verbose diff --git a/doc/git-show-unreachable/alias.sh b/doc/git-show-unreachable/alias.sh new file mode 100644 index 00000000..4d46b0a5 --- /dev/null +++ b/doc/git-show-unreachable/alias.sh @@ -0,0 +1 @@ +git fsck --unreachable | grep commit | cut -d" " -f3 | xargs git log diff --git a/doc/git-sm/alias.txt b/doc/git-sm/alias.txt new file mode 100644 index 00000000..e2d6b898 --- /dev/null +++ b/doc/git-sm/alias.txt @@ -0,0 +1 @@ +submodule diff --git a/doc/git-sma/alias.txt b/doc/git-sma/alias.txt new file mode 100644 index 00000000..8906d570 --- /dev/null +++ b/doc/git-sma/alias.txt @@ -0,0 +1 @@ +submodule add diff --git a/doc/git-smi/alias.txt b/doc/git-smi/alias.txt new file mode 100644 index 00000000..6234efaa --- /dev/null +++ b/doc/git-smi/alias.txt @@ -0,0 +1 @@ +submodule init diff --git a/doc/git-sms/alias.txt b/doc/git-sms/alias.txt new file mode 100644 index 00000000..f2a0a6ec --- /dev/null +++ b/doc/git-sms/alias.txt @@ -0,0 +1 @@ +submodule sync diff --git a/doc/git-smu/alias.txt b/doc/git-smu/alias.txt new file mode 100644 index 00000000..dfbaa3e1 --- /dev/null +++ b/doc/git-smu/alias.txt @@ -0,0 +1 @@ +submodule update diff --git a/doc/git-smui/alias.txt b/doc/git-smui/alias.txt new file mode 100644 index 00000000..29c77fe9 --- /dev/null +++ b/doc/git-smui/alias.txt @@ -0,0 +1 @@ +submodule update --init diff --git a/doc/git-smuir/alias.txt b/doc/git-smuir/alias.txt new file mode 100644 index 00000000..955f0035 --- /dev/null +++ b/doc/git-smuir/alias.txt @@ -0,0 +1 @@ +submodule update --init --recursive diff --git a/doc/git-snapshot/alias.sh b/doc/git-snapshot/alias.sh new file mode 100644 index 00000000..4c4d68b3 --- /dev/null +++ b/doc/git-snapshot/alias.sh @@ -0,0 +1 @@ +git stash push --include-untracked --message "snapshot: $(date)" && git stash apply "stash@{0}" --index diff --git a/doc/git-ss/alias.txt b/doc/git-ss/alias.txt new file mode 100644 index 00000000..d8fdadab --- /dev/null +++ b/doc/git-ss/alias.txt @@ -0,0 +1 @@ +status --short diff --git a/doc/git-ssb/alias.txt b/doc/git-ssb/alias.txt new file mode 100644 index 00000000..808e9e74 --- /dev/null +++ b/doc/git-ssb/alias.txt @@ -0,0 +1 @@ +status --short --branch diff --git a/doc/git-stashes/alias.txt b/doc/git-stashes/alias.txt new file mode 100644 index 00000000..97a9358d --- /dev/null +++ b/doc/git-stashes/alias.txt @@ -0,0 +1 @@ +stash list diff --git a/doc/git-summary/alias.sh b/doc/git-summary/alias.sh new file mode 100644 index 00000000..8799280c --- /dev/null +++ b/doc/git-summary/alias.sh @@ -0,0 +1,26 @@ +f() { printf "Summary of this branch... +"; printf "%s +" "$(git rev-parse --abbrev-ref HEAD)"; printf "%s first commit timestamp +" "$(git log --date-order --format=%cI | tail -1)"; printf "%s last commit timestamp +" "$(git log -1 --date-order --format=%cI)"; printf " +Summary of counts... +"; printf "%d commit count +" "$(git rev-list --count HEAD)"; printf "%d date count +" "$(git log --format=oneline --format="%ad" --date=format:"%Y-%m-%d" | awk '{a[$0]=1}END{for(i in a){n++;} print n}')"; printf "%d tag count +" "$(git tag | wc -l)"; printf "%d author count +" "$(git log --format=oneline --format="%aE" | awk '{a[$0]=1}END{for(i in a){n++;} print n}')"; printf "%d committer count +" "$(git log --format=oneline --format="%cE" | awk '{a[$0]=1}END{for(i in a){n++;} print n}')"; printf "%d local branch count +" "$(git branch | grep -vc " -> ")"; printf "%d remote branch count +" "$(git branch -r | grep -vc " -> ")"; printf " +Summary of this directory... +"; printf "%s +" "$(pwd)"; printf "%d file count via git ls-files +" "$(git ls-files | wc -l)"; printf "%d file count via find command +" "$(find . | wc -l)"; printf "%d disk usage +" "$(du -s | awk '{print $1}')"; printf " +Most-active authors, with commit count and %%... +"; git log-of-count-and-email | head -7; printf " +Most-active dates, with commit count and %%... +"; git log-of-count-and-day | head -7; printf " +Most-active files, with churn count +"; git churn | head -7; }; f diff --git a/doc/git-svn-b/alias.txt b/doc/git-svn-b/alias.txt new file mode 100644 index 00000000..8e1ef648 --- /dev/null +++ b/doc/git-svn-b/alias.txt @@ -0,0 +1 @@ +svn branch diff --git a/doc/git-svn-c/alias.txt b/doc/git-svn-c/alias.txt new file mode 100644 index 00000000..d0d54f69 --- /dev/null +++ b/doc/git-svn-c/alias.txt @@ -0,0 +1 @@ +svn dcommit diff --git a/doc/git-svn-cp/alias.sh b/doc/git-svn-cp/alias.sh new file mode 100644 index 00000000..90eb924a --- /dev/null +++ b/doc/git-svn-cp/alias.sh @@ -0,0 +1 @@ +GIT_EDITOR='sed -i /^git-svn-id:/d' git cherry-pick --edit diff --git a/doc/git-svn-m/alias.txt b/doc/git-svn-m/alias.txt new file mode 100644 index 00000000..00f434e4 --- /dev/null +++ b/doc/git-svn-m/alias.txt @@ -0,0 +1 @@ +merge --squash diff --git a/doc/git-tags/alias.txt b/doc/git-tags/alias.txt new file mode 100644 index 00000000..f89dc0b8 --- /dev/null +++ b/doc/git-tags/alias.txt @@ -0,0 +1 @@ +tag -n1 --list diff --git a/doc/git-theirs/alias.sh b/doc/git-theirs/alias.sh new file mode 100644 index 00000000..8ee45986 --- /dev/null +++ b/doc/git-theirs/alias.sh @@ -0,0 +1 @@ +f() { git checkout --theirs "$@" && git add "$@"; }; f diff --git a/doc/git-top/alias.txt b/doc/git-top/alias.txt new file mode 100644 index 00000000..42c595bb --- /dev/null +++ b/doc/git-top/alias.txt @@ -0,0 +1 @@ +rev-parse --show-toplevel diff --git a/doc/git-topic-base-branch/alias.sh b/doc/git-topic-base-branch/alias.sh new file mode 100644 index 00000000..0c418e16 --- /dev/null +++ b/doc/git-topic-base-branch/alias.sh @@ -0,0 +1 @@ +git config --get init.topicBaseBranchName || git default-branch diff --git a/doc/git-topic-begin/alias.sh b/doc/git-topic-begin/alias.sh new file mode 100644 index 00000000..4053f0cb --- /dev/null +++ b/doc/git-topic-begin/alias.sh @@ -0,0 +1 @@ +f(){ new_branch="$1"; old_branch="$(git topic-base-branch)"; git checkout "$old_branch"; git pull --ff-only; git checkout -b "$new_branch" "$old_branch"; git push -u origin "$new_branch"; };f diff --git a/doc/git-topic-end/alias.sh b/doc/git-topic-end/alias.sh new file mode 100644 index 00000000..378496ea --- /dev/null +++ b/doc/git-topic-end/alias.sh @@ -0,0 +1,6 @@ +f(){ new_branch="$(git current-branch)"; old_branch="$(git topic-base-branch)"; if [ "$new_branch" = "$old_branch" ]; then printf "You are asking to do git topic-end, +"; printf "but you are not on a new topic branch; +"; printf "you are on the base topic branch: %s. +" "$old_branch"; printf "Please checkout the topic branch that you want, +"; printf "then retry the git topic-end command. +"; else git push; git checkout "$old_branch"; git branch --delete "$new_branch"; git push origin ":$new_branch"; fi; };f diff --git a/doc/git-topic-move/alias.sh b/doc/git-topic-move/alias.sh new file mode 100644 index 00000000..ac919ffc --- /dev/null +++ b/doc/git-topic-move/alias.sh @@ -0,0 +1 @@ +f(){ new_branch="$1"; old_branch="$(git current-branch)"; git branch --move "$old_branch" "$new_branch"; git push origin ":$old_branch" "$new_branch"; };f diff --git a/doc/git-topic-sync/alias.sh b/doc/git-topic-sync/alias.sh new file mode 100644 index 00000000..0fb1c2ed --- /dev/null +++ b/doc/git-topic-sync/alias.sh @@ -0,0 +1,6 @@ +f(){ new_branch="$(git current-branch)"; old_branch="$(git topic-base-branch)"; if [ "$new_branch" = "$old_branch" ]; then printf "You are asking to do git topic-sync, +"; printf "but you are not on a new topic branch; +"; printf "you are on the base topic branch: %s. +" "$old_branch"; printf "Please checkout the topic branch that you want, +"; printf "then retry the git topic-sync command. +"; else git pull; git push; fi; };f diff --git a/doc/git-track-all-remote-branches/alias.sh b/doc/git-track-all-remote-branches/alias.sh new file mode 100644 index 00000000..0df74086 --- /dev/null +++ b/doc/git-track-all-remote-branches/alias.sh @@ -0,0 +1 @@ +f() { git branch -r | grep -v ' -> ' | sed 's/^ \+origin\///' ; }; f diff --git a/doc/git-track/alias.sh b/doc/git-track/alias.sh new file mode 100644 index 00000000..b76dc35d --- /dev/null +++ b/doc/git-track/alias.sh @@ -0,0 +1 @@ +f(){ branch="$(git rev-parse --abbrev-ref HEAD)"; cmd="git branch $branch -u ${1:-origin}/${2:-$branch}"; echo "$cmd"; $cmd; }; f diff --git a/doc/git-unadd/alias.txt b/doc/git-unadd/alias.txt new file mode 100644 index 00000000..225f7bc8 --- /dev/null +++ b/doc/git-unadd/alias.txt @@ -0,0 +1 @@ +reset HEAD diff --git a/doc/git-unassume-all/alias.sh b/doc/git-unassume-all/alias.sh new file mode 100644 index 00000000..eb338c55 --- /dev/null +++ b/doc/git-unassume-all/alias.sh @@ -0,0 +1 @@ +git assumed | xargs -r git update-index --no-assume-unchanged diff --git a/doc/git-unassume-all/index.md b/doc/git-unassume-all/index.md index fe7a053c..79176218 100644 --- a/doc/git-unassume-all/index.md +++ b/doc/git-unassume-all/index.md @@ -1,4 +1,4 @@ -# git unassume +# git unassume-all ## Unassume all files diff --git a/doc/git-unassume/alias.txt b/doc/git-unassume/alias.txt new file mode 100644 index 00000000..890ea3ea --- /dev/null +++ b/doc/git-unassume/alias.txt @@ -0,0 +1 @@ +update-index --no-assume-unchanged diff --git a/doc/git-uncommit/alias.txt b/doc/git-uncommit/alias.txt new file mode 100644 index 00000000..3e7d6549 --- /dev/null +++ b/doc/git-uncommit/alias.txt @@ -0,0 +1 @@ +reset --soft HEAD~1 diff --git a/doc/git-undo-commit-hard-clean/alias.sh b/doc/git-undo-commit-hard-clean/alias.sh new file mode 100644 index 00000000..d607f23d --- /dev/null +++ b/doc/git-undo-commit-hard-clean/alias.sh @@ -0,0 +1 @@ +git reset --hard HEAD~1 && git clean -fd diff --git a/doc/git-undo-commit-hard/alias.txt b/doc/git-undo-commit-hard/alias.txt new file mode 100644 index 00000000..f4a19300 --- /dev/null +++ b/doc/git-undo-commit-hard/alias.txt @@ -0,0 +1 @@ +reset --hard HEAD~1 diff --git a/doc/git-undo-commit/alias.txt b/doc/git-undo-commit/alias.txt new file mode 100644 index 00000000..3e7d6549 --- /dev/null +++ b/doc/git-undo-commit/alias.txt @@ -0,0 +1 @@ +reset --soft HEAD~1 diff --git a/doc/git-undo-to-pristine/alias.sh b/doc/git-undo-to-pristine/alias.sh new file mode 100644 index 00000000..64e97665 --- /dev/null +++ b/doc/git-undo-to-pristine/alias.sh @@ -0,0 +1 @@ +git reset --hard && git clean -ffdx diff --git a/doc/git-undo-to-upstream/alias.sh b/doc/git-undo-to-upstream/alias.sh new file mode 100644 index 00000000..392e5748 --- /dev/null +++ b/doc/git-undo-to-upstream/alias.sh @@ -0,0 +1 @@ +git reset --hard "$(git upstream-branch)" diff --git a/doc/git-unpublish/alias.sh b/doc/git-unpublish/alias.sh new file mode 100644 index 00000000..66d6e82f --- /dev/null +++ b/doc/git-unpublish/alias.sh @@ -0,0 +1 @@ +git push origin :"$(git current-branch)" diff --git a/doc/git-untrack/alias.sh b/doc/git-untrack/alias.sh new file mode 100644 index 00000000..97f0d72b --- /dev/null +++ b/doc/git-untrack/alias.sh @@ -0,0 +1 @@ +f(){ branch="$(git rev-parse --abbrev-ref HEAD)"; cmd="git branch --unset-upstream ${1:-$branch}"; echo "$cmd"; $cmd; }; f diff --git a/doc/git-unwip/alias.sh b/doc/git-unwip/alias.sh new file mode 100644 index 00000000..c04fd431 --- /dev/null +++ b/doc/git-unwip/alias.sh @@ -0,0 +1 @@ +git log -n 1 | grep -q -c wip && git reset HEAD~1 diff --git a/doc/git-upstream-branch/alias.sh b/doc/git-upstream-branch/alias.sh new file mode 100644 index 00000000..61511c46 --- /dev/null +++ b/doc/git-upstream-branch/alias.sh @@ -0,0 +1 @@ +git for-each-ref --format='%(upstream:short)' "$(git symbolic-ref -q HEAD)" diff --git a/doc/git-w/alias.txt b/doc/git-w/alias.txt new file mode 100644 index 00000000..315aefdd --- /dev/null +++ b/doc/git-w/alias.txt @@ -0,0 +1 @@ +whatchanged diff --git a/doc/git-whatis/alias.txt b/doc/git-whatis/alias.txt new file mode 100644 index 00000000..1791e08e --- /dev/null +++ b/doc/git-whatis/alias.txt @@ -0,0 +1 @@ +show --no-patch --pretty='tformat:%h (%s, %ad)' --date=short diff --git a/doc/git-who/alias.txt b/doc/git-who/alias.txt new file mode 100644 index 00000000..027ac1c8 --- /dev/null +++ b/doc/git-who/alias.txt @@ -0,0 +1 @@ +shortlog --summary --numbered --no-merges diff --git a/doc/git-whois/alias.sh b/doc/git-whois/alias.sh new file mode 100644 index 00000000..9ac99861 --- /dev/null +++ b/doc/git-whois/alias.sh @@ -0,0 +1,2 @@ +sh -c 'git log --regexp-ignore-case -1 --pretty="format:%an <%ae> +" --author="$1"' - diff --git a/doc/git-wip/alias.sh b/doc/git-wip/alias.sh new file mode 100644 index 00000000..0872b7ff --- /dev/null +++ b/doc/git-wip/alias.sh @@ -0,0 +1 @@ +git add --all; git ls-files --deleted -z | xargs -r -0 git rm; git commit --message=wip diff --git a/dry.sh b/dry.sh new file mode 100755 index 00000000..ae83d678 --- /dev/null +++ b/dry.sh @@ -0,0 +1,24 @@ +#! /usr/bin/env bash +set -eu + +git config --file=gitalias.txt --null --get-regexp '^alias\.' | +while read -r -d $'\n' key +do + key="${key:6}" + read -r -d $'\0' value + + mkdir -p "doc/git-${key}" + + if [[ $value == !* ]] + then + echo "${value:1}" > "doc/git-${key}/alias.sh" + else + echo "$value" > "doc/git-${key}/alias.txt" + fi + + if [[ "$(head -n 1 "doc/git-${key}/index.md")" != "# git ${key}" ]] + then + echo "${key} : FAIL doc/git-${key}/index.md" + echo "\"$(head -n 1 "doc/git-${key}/index.md")\" != \"# git ${key}\"" + fi +done