DEV Community

Borja Lorente
Borja Lorente

Posted on

What's your favourite git command 🖥❓

Mine is git rebase -i, you can do almost anything with it!

Context: This is research for future posts in beyondtheloop.dev

Top comments (8)

Collapse
 
jmplourde profile image
Jean-Michel Plourde

based on frequency, I'd say git status lol

Collapse
 
blorente profile image
Borja Lorente

Hahaha, that's fair :)

Any flags you like to use with that one?

Collapse
 
jmplourde profile image
Jean-Michel Plourde

I've been using it bare for the last 4 years. I didn't any usecase for its flags.

Thread Thread
 
blorente profile image
Borja Lorente

Me too :)

I just have an alias to type it faster:
alias gst=“git status “

Thread Thread
 
jmplourde profile image
Jean-Michel Plourde

I use the Zsh git plugin and that alias and many others are already included.

Thread Thread
 
blorente profile image
Borja Lorente

Oh, that's where I got it from!
I ja to move away from zsh a few years ago, and those aliases may have made it into my dotfiles then :)
I must have forgotten 😅

Collapse
 
pollobatgit profile image
Ashiqul

git log. This command is pretty versatile.

Collapse
 
blorente profile image
Borja Lorente

I agree!

What's your favourite way to use it?