TODO
git
configuration:
- Alias:
g
instead ofgit
or, if no arguments given,git status -sb
- Alias:
git camend
for amending commit latest commit without changing message - Alias:
git ci
to commit, showing the entire changeset being committed below the commit message for review purposes (will not be included in commit message) - Alias:
git cundo
to go back to just before you executedgit commit
- Alias:
git current-branch
for name of current branch - Alias:
git l
for a reasonable commit log overview - Alias:
git ls
for a detailed commit log overview, including stats - Alias:
git ld
for a detailed commit log overview, including stats and diffs - Alias:
git lola
(see link for details) - Alias:
git up
for fetching and rebasingorigin/master
into the feature branch. Usegit up -i
for interactive rebases. - Alias:
git versions
for aliasinggit-releases
(below) - Command:
git ca
to amend the latest commit, updating the commit date to current - Command:
git churn
to show churn for the files changed in the branch - Command:
git ctags
to rerun git hook for regenerating project-wide ctags - Command:
git fixup
for a fixup-style git workflow - Command:
git latest-version
for the latest version tag, matching av0.0.0
-style - Command:
git log-versions
for listing what we guess should be commits that are (or should be) tagged with thev0.0.0
-style version tags. Displays commit log and diff of the file containing the version identifier - Command:
git releases
for a list of tags matching av0.0.0
-style of version tag - Command:
git trust
to create the directory.git/safe
(which allows./bin
to be added to PATH) (Deprecated. Usedirenv
instead) - Command:
git unpushed
to list all changes between the latest local commit and what's on the matching remote branch - Command:
git unpushed-stat
to list all files changed between the latest local commit and what's on the matching remote branch - Config: Automatically squash fixup and revert commits
- Config: Better coloring
- Config: Default message from
~/.gitmessage
- Config: Diff pager is run through
diff-so-fancy
- Config: Rebasing automatically squashes fixup and revert commits
- Config: Rebasing automatically stashes uncommitted changes
- Config: Signing commits with default GPG key, unless explicitly skipped