Notessh2a

Aliases

Git aliases are custom shortcuts you create to make Git commands quicker and easier to type.

  • Create:
    git config --global alias.<alias> '<actual_command>'

    Example:

    git config --global alias.lo 'log --oneline'
  • Remove:
    git config --global --unset alias.<alias>
  • List:
    git config --global --list

    Shows all global config entries including your aliases.