Menu

gitpiper

List all git aliases git Code Snippet in 2025

configurationintermediate

Last Updated: 25 April 2025

Prints a list of all git aliases.

  • Use git config -l to list all variables set in the configuration file.
  • Use the pipe operator (|) to pipe the output and grep alias to only keep aliases.
  • Use the pipe operator (|) to pipe the output and sed 's/^alias\.//g' to remove the alias. part from each alias.
git config -l | grep alias | sed 's/^alias\.//g'
git config -l | grep alias | sed 's/^alias\.//g' # st=status # co=checkout # rb=rebase

git snippet similar to List all git aliases For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️