I'm wondering if there's a way to avoid having to type the word git
at the beginning of every Git command.
It would be nice if there was a way to use the git
command only once in the beginning after opening a command prompt to get into "Git mode".
For example:
git>
After which every command we type is by default interpreted as a Git command.
In a way similar to how we use the MySQL shell to write database commands:
mysql>
This will save me from having to type git
hundreds of times a day.
NOTE: I'm using git-bash
, on Windows.
You might want to try gitsh. From their readme:
The
gitsh
program is an interactive shell for git. From withingitsh
you can issue any git command, even using your local aliases and configuration.
- Git commands tend to come in groups. Avoid typing
git
over and over and over by running them in a dedicated git shell:sh$ gitsh gitsh% status gitsh% add . gitsh% commit -m "Ship it!" gitsh% push gitsh% ctrl-d sh$
Or have a look at the other projects linked there:
Note: Haven't used this myself.