Bash commands with spaces in them (git config or git-config?)
Please forgive me if this seems easy, but I only started learning Unix 2 days ago.
Basically, I have been taught that when typing a command into the terminal it needs to be of the form:
[command name][space][-options][space][arguments]
Now I've just started looking at using git, and I've come across the following:
git config --global core.editor "notepad.exe -wl1"
So in this case is git config the command? How can that work when there is a space in the middle of it? Wouldn't unix get confused and think that config would be an option?
Also just to confuse matters even more, very often I see a command called git-config. Is this the same as git config?
I find it really confusing that in something where precise syntax is very important, these things aren't clearly explained.
Thanks for your help.
Please forgive me if this seems easy, but I only started learning Unix 2 days ago.
Basically, I have been taught that when typing a command into the terminal it needs to be of the form:
[command name][space][-options][space][arguments]
Now I've just started looking at using git, and I've come across the following:
git config --global core.editor "notepad.exe -wl1"
So in this case is git config the command? How can that work when there is a space in the middle of it? Wouldn't unix get confused and think that config would be an option?
Also just to confuse matters even more, very often I see a command called git-config. Is this the same as git config?
I find it really confusing that in something where precise syntax is very important, these things aren't clearly explained.
Thanks for your help.
No comments:
Post a Comment