2 ms·
Did you know you can make your own git commands, and I don't mean just aliases? Write a script called git-mycommand, and you can invoke it with 'git mycommand'
by barrkel 13y ago
Did you know you can make your own git commands, and I don't mean just aliases?
Write a script called git-mycommand, and you can invoke it with 'git mycommand'. Tab completion works too, at least for bash + bash_completion.
- bstpierre 13y agoYes, I have written some of those too. Just make sure the script is in your PATH. I drop them in ~/bin/ -- which reminds me of another thing you should have in your ~/.bash_profile, if it isn't already in the template provided by your system: if [ -d $HOME/bin ] then PATH=$PATH:$HOME/bin fi