Smarter git-pull
Smarter git-pull. Inspired by, and mostly cribbed from, git-smart. But, you know, in shell. Because.
git-update can easily be installed with homebrew:
brew tap gfontenot/formulae
brew install git-update
git-update will perform the following actions when pulling:
rebase -p
on top of the remote branch if there are new localThe git log will use a custom log format if you've defined pretty.update
in
your gitconfig. If you haven't set a custom format, it will use the following:
%C(yellow)%h%Cblue%d%Creset %s - %C(white)%an %Cgreen(%cr)%Creset
This outputs a log formatted like so:
This prints the log like so:
<SHA> <Commit Message> - <Author> (<Relative Date>)