Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

git pull with fast-forward (--ff-only) is the only sane way to use git pull (if one must use git pull).

The most powerful one most people don’t use is reset. Soft and hard resets are my bread and butter. I don’t even bother with interactive rebases for squashing. I do a soft reset against origin/<branch> and create a new commit.



I'd add `git pull --rebase` to that




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: