Careful with that force flag, though! (I use the that flag less than once a month, but reading your other comments, I also barely ever rebase).
Note that when I use git commit --amend, I use -CHEAD about 90% of the time.
What are the --smart flags? Is that a new feature? I'm on git 2.15.1 and don't see it in the man page, or when I try using them just to see if they work.
For git log --pretty, I spent a day reading the man page, and wound up with a helper, which is aliased to git log --pretty=format:'%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset' --graph --date=short, it tends to be as terse as git log --format=oneline, but also includes the useful author and branch info of git log --pretty.
Nice!
Careful with that force flag, though! (I use the that flag less than once a month, but reading your other comments, I also barely ever rebase).
Note that when I use
git commit --amend
, I use-CHEAD
about 90% of the time.What are the
--smart
flags? Is that a new feature? I'm on git 2.15.1 and don't see it in the man page, or when I try using them just to see if they work.For
git log --pretty
, I spent a day reading the man page, and wound up with a helper, which is aliased togit log --pretty=format:'%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset' --graph --date=short
, it tends to be as terse asgit log --format=oneline
, but also includes the useful author and branch info ofgit log --pretty
.The
smart
flags are not built in Git. That's just my 'aliases' for the commands.