DEV Community

Muhammad Iliyas
Muhammad Iliyas

Posted on • Edited on

Git Command Alias

💡 Shorten long git commands with aliases:-

  • You can add aliases to your git commands as we do for Linux commands.
  • You can do it for git commands by adding [alias] section to .gitconfig file.

[alias]

  • ca = commit -a -m
  • lol = log --graph --decorate --pretty=oneline --abbrev-commit
  • For Example: git ca "This is a test commit."

Top comments (0)