Git utilities
A repository of useful git utilities, including config file
Feature summary
git graph:git logwith one line per commit and graph linesgit graph-all:git graphfor all commitsgit graph-line:git graph, ignoring right-hand side of merges; only commits made on current branch
git cite: Likegit graphbut formatted for citationgit owner: Show the branch that "owns" a commitgit user: Sets the current repo's user.name and user.email to the provided templategit expandvar: Prints out a fully expanded variable, recursively until expansion produces no change, beware loopsgit root: Prints the path to the root of the current repogit basedir: Likegit rootbut shows the root of the base if current repo is a worktreegit scripts: Run specified script from the current worktree, repo, global, or system scripts pathgit hooks: Run all hooks in the.d directory for worktree, local, global, and system in lexicographical order with conflicting files resolving by specificity e.g. a commit-mg.d/100_foo file exists in both local repo and system then onmly the local repo version is executed. commit-msg: Validate the subject is well formatted according to Conventional Commits and adds relevant trailers
git ignore: Output the text of a .gitignore file for the languages / tools passed as argumentsgit trailer: Scripts for specific trailersgit trailer Co-Authored-By: Takes a partial name and returns a matching name and email from the repo's committers / authors or prompts if interactive.
git cvar: Prints out a specific git config variable or all vars under a section.git repotype: Prints the current repo type if no argument passed or returns success / error code if repo is that typegit isrepo: returns success / error code if repo is a regular repogit isbare: returns success / error code if repo is a bare repogit iswork: returns success / error code if repo is a non-regular repo worktree
Links: