This is not a full guide to which commands you should learn. I just find it inspiring to read about other developers’ habits and work routines. Thi...
For further actions, you may consider blocking this person and/or reporting abuse
git checkout -- .
= "oops I fucked up, time to undo all my un-staged changes"
I will try that one out 😉
Hi Steffen.
Thanks for sharing this.
Here's my 50 cents: I use
git commit -am "message"
when I only have edits to commit.This is great!
Thanks for sharing!
git stash apply stash@{n}
can be replaced with
git stash apply n
Thank you 🤓
From now on ‘—force-with-lease’ after rebase, thanks man!
Use it wisely 😉 It can still be dangerous.
A great place to learn git fast and in a funny way is Oh shit, git!. It shows what git command should be used in some common situations that we have been/will go through.
I agree! It's been a while since I read it. Maybe I should try it out again 😃
git add --all = git add .
Du har fuldstændig ret 😃