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 add an alias for a command?

Code Block
languagebash
$ git config --global alias.<name> '<command>'

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

Code Block
languagebash
$ git config --global alias.co 'checkout'

Do you know of any aliases that are useful?

Glad you asked! Please see Aliases for a couple of aliases that can be usefulthe Aliases page.

Cloning

How do I clone a repository?

...