Get a list of git commands

I would like to make an alias for each git command.

Since there are a lot of them, I would like to get them in a list so that I can then create a loop in mine .bashrc

.

Is there a way to get them in a shell script?

+3


source to share


1 answer


You can try this:

git help -a

      



Alternatively, your git commands are listed in <git-core directory>

:

ls -1 <git-core-directory>

      

+5


source







All Articles