...
| Code Block |
|---|
|
$ git config --global core.editor "vim" |
How do I
...
configure an HTTP(S) proxy?
| Code Block |
|---|
|
$ git config --global aliashttp.<name>proxy '<command>' |
For example, if you want to type git co instead of git checkout you would run:
PROXY-HOSTNAME:PROXY-PORT' |
Substitute PROXY-HOSTNAME with the hostname of the HTTP(S) proxy server, and PROXY-PORT with the port of the HTTP(S) proxy server.
How do I add an alias for a command?
| Code Block |
|---|
| Code Block |
|---|
|
$ git config --global alias.co<name> 'checkout' |
...
For example, if you want to type git co instead of git checkout you would run:
| Code Block |
|---|
|
$ git config --global httpalias.proxyco 'PROXY-HOSTNAME:PROXY-PORT' |
...
Do you know of any aliases that are useful?
...