git status
git add
git clone
git push
git commit....
Why doesn't Git bash allow you to type git commands like:
status
add
clone
push
And then for all non git command type "nongit" or something
nongit cd
nongit ls...
or is this possible?
This is so internal git commands no not clash with existing shell commands.
In modern CLI tools like git functionality is often broken into subtools which are invoked with an internal command. These commands can then take specific arguments which unclutters the tool interface. git status
means "invoke the status
command of git
".
Perhaps git-sh is what you're looking for: Check https://github.com/rtomayko/git-sh or install the Package git-sh in Debian/Ubuntu
Maybe you could try out GIT Prompt:
http://volnitsky.com/project/git-prompt/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With