Useful configuration and aliases for git.
-
glGit log, pretty -
glsShort git log -
gsGit status -
gbsGit branch, sorted by commit date -
tag-nextMakes the next sequential SEMVER tag; prompts user for which possible alternative (major, minor, patch, etc.) is desired. -
tnqTag Next quick and push. Makes the next sequential SEMVER tag and pushes it to the origin. -
git-cleanupDelete all local branches that have been merged. -
grep-branchesRun a grep on all branches. -
grep-allRun grep across all commits in the current branch. -
clone-allGiven a Github token and a Github org name, creates a local working copy of every project in that org. -
pull-allIterate over all local working copies that are immediate children of the current working directory, and rungit pullon each.
At installation time, or whenever the configure-git script is executed, some basic git defaults will be set. See the script for details.
$ cd $HOME/persistent/install/location
$ git clone https://github.com/g1a/git-bashrc.git
$ cd git-bashrc
$ source bashrc-install
The bashrc-install.sh script will do some basic one-time git configuration, and install the git-bashrc file in your $HOME/.bashrc file.
These aliases and scripts were originally part of the Utiliscripts project.