DEV Community

Julien Prugne for Webeleon

Posted on • Updated on

How to alias git commands?

If you are familiar with git, you should know about the git pull command.

If you speak French, you know it's pronounce the same as chicken (poule)

And if you have a sense of humour as lame as mine, you need to alias the command git pull as git poule

git config --global alias.poule pull
Enter fullscreen mode Exit fullscreen mode

Now it's your turn, what will you do?

Oldest comments (6)

Collapse
 
marlo22 profile image
marcin93 • Edited

Good to know, thank you for this tip. :) Without global flag can we define alias for project only?

Btw. I really like short and pithy posts like this.

Collapse
 
bassochette profile image
Julien Prugne

Just tested without the --global flag and yes it can be aliased locally.

Collapse
 
marlo22 profile image
marcin93 • Edited

Great! Thanks. :)

Collapse
 
aminnairi profile image
Amin

In the same tone, you have Marcel, which is the Docker CLI, but translated with french options instead.

Collapse
 
bassochette profile image
Julien Prugne

This is epic!

Collapse
 
donut87 profile image
Christian Baer

Here's a time saver:
git config --global alias.pill pull

Also in my .bashrc:
alias gut=git