TL;DR
One of my favorite things about Git is being as simple as it is and also being customisable and one of those features is aliases. ...
For further actions, you may consider blocking this person and/or reporting abuse
My aliases:
git ls hash
β is useful to show the files involved in a commit.
I must say, they are pretty awesome.
Grep stands for "Global Regular Expression Printer". It gives you a clue about how it works, which is important, but "git search" doesn't.
I really like the plg and zip aliases, so I'm definitively stealing those! Thanks for writing!
That's more of a backronym, really. It actually comes from the relatively ancient
ed
line editor's commandg/re/p
which basically means "global search / for a regular expression / print matching lines". So it's at least a fairly accurate backronym to the source.The
g
command still sort of lives on in vi/Vim's ex mode commands. The most common use these days is probably forg/pattern/d
, which does a global search for the pattern and deletes matching lines, sort of the opposite of the originalg/re/p
command.Oh, I didn't know that! Thanks!
Thanks for grep too. I guess search isn't
Oh man. That git here. Where has that been all my life?
Nice one there Ephraim.
Been using git for years, and still found something useful here.
PS. "grep" is selecting something using regular expressions.
Wow. Thanks
en.wikipedia.org/wiki/Grep
Read a bit more about standalone
grep
. It's an important part of any unix system.My favorite is
git recommit
.This one is my current favorite. Highly recommended after a
git fetch --all
to visualize where the branches are at.Now I will have the proof in order to blame someone for a bug. ππ
Cool.
π
My only and must have alias
git up
It fetch all branches, delete tracking remote branches that not exist and pull the update.
Nice.
I learned of
git cherry-pick
top of last week, thought I'd toss that one in here too.Great article!
waow. nice
nice ...thanks for sharing
Nice!! Iβll update my .gitconfig now!!
Some names are creative. Nice read. π
Thanks