Just some simple git commands that made more sense as scripts than as aliases.
Clone this repo and copy or link the directory into your
$PATH and call them like git ar
or git finda ci
. Make
sure the scripts are executable.
More complex commands will display usage instruction
with -h
.
Some scripts require external tools:
All easily installed with Homebrew.
git ar
- Add all new files to staging and remove deleted filesgit comm [<summary>]
- Pretty commit message input using gumgit finda <alias>
- Find a git alias using pattern matchinggit ig [<lang>]
- Add contents of an ignore file from gitignore.io, uses fzfgit iglist
- List all available ignore filesgit logjson
- Output a JSON-formatted git loggit releasenext [major|minor|*patch]
- Creates a release using hub for the next semantic version (based on tags)git semnext [major|minor|*patch]
- Output the next semantic version numbergit sign
- Enable/disable GPG signing, assign key for repo or globallygit ver
- Display the current semantic version (based on tags)git whyig
- Show ignored files and explain why/how they're ignored
useful-git-aliases.conf
contains a collection of useful aliases.
Save useful-git-aliases.conf
somewhere on your system. I
like to put it in a folder I sync with Dropbox between my
machines:
~/.local/share/git/useful-git-aliases.conf
Edit ~/.gitconfig to include this file:
vim ~/.gitconfig
Include the path to the alias file:
[include]
path = ~/.local/share/git/useful-git-aliases.conf
The file includes some aliases from @durdn.
Once installed, git la
will list all your aliases.
This repo is licensed under the MIT License.
See https://opensource.org/licenses/MIT for details.