Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
$ git config --global core.editor "vim"

How do I

...

configure an HTTP(S) proxy?

Code Block
languagebash
$ 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
languagebash
$ git config --global alias.co<name> 'checkout'

...

<command>'

For example, if you want to type git co instead of git checkout you would run:

Code Block
languagebash
$ git config --global httpalias.proxyco 'PROXY-HOSTNAME:PROXY-PORT'

...

checkout'

Do you know of any aliases that are useful?

...