Git Extending with Custom Commands
Extending git with custom commands.
Aliases, would be one way to extend git. You can do things like:
git ci -m message file1
To define the alias, you can do it from the terminal:
git config --global alias.ci commit
Which would create the following entry in your .gitconfig
file
[alias]
ci = commit
Show git alias
As an example, we can create an alias to list all aliases. Simple, from terminal we could do:
git config --global alias.alias "config --get-regexp 'alias.*'"
Then, we have access to the following command from terminal:
git alias
Another way would be to add a new command all together.
git binary init
git binary update