I like
git add
because then you can dogit diff --staged
Yes yes, combined with
git add -P
makes small, meaningful commits so much easier.Check out magit!
Alas I sold my soul to VSCode a long time ago.
Also, ew, emacs 😝
Oh come on, try it out! I know some people who use emacs only for magit. It really is that good.
A few of them slowly became full on emacs users…
I specifically have a oh-shit alias for this kind of stuff lol: https://code.wedotstud.io/patrick/dotfiles/src/commit/c2f93629fe27d1747ceb22b4d6442840d109aa99/.gitconfig#L28
I set this up for seamless commits:
function gao() { git add . git commit -a -m "$*" git push origin `git rev-parse --abbrev-ref HEAD` }
Usage: gao fixing a typo
… What’s
git merge
look like?i’m sure there are much better tools available, but i’m just used to git gui where rescan, commit and push all are in order.
Use Jujutsu
jj
and you won’t have this problem