I've been using git aliases for a while now. People have seen me using them, asked me, I explained, encouraged them to use it too and failed. Why? ...
For further actions, you may consider blocking this person and/or reporting abuse
My aliases in
~/.gitconfig
In other cases I don't use abbreviations, because using bash-complete is easier to me.
I like using s for status, o for pull origin, po for push origin and a few other short ones.
However, there was no point in git aliases for me if I didn't alias git as simply g in ~/.bashrc or .~/profile
g s
g bd (branch -d)
g b
g co
g c (commit -m)
g m (merge)
I try to read the letters in my head as the full command so I remember the commands elsewhere.
In my
~/.bashrc
is included:This is nice too. Surely there are lots of ways to do this. Thanks for sharing.
That's a nice touch. Didn't thought of that before. Thanks for sharing.
Oh, it's the first I heard of bash complete. Thanks for sharing.
lol :) even try CTRL+R for searching in history :)
you guys have some interestig aliases, to be honest, for many of them i am not sure what they do.. time to study i guess :)
The aliases I see facilitate a flow I would recommend not to use.
I also do hybrid command line myself. When I go to commit I'll use git gui. Git status isn't as nice as gitk.
Even though the fixup alias intrigued me, I think keeping the commit separate and finalizing at the end of work with an interactive rebase can lend to more options for rework.
Some useful add-ins for git: