Title here
Summary here
git checkout
a change, hard resets, or bad rebasesgit pull --rebase
- I often check out others’ branches so I can reproduce something they’re looking at locally. Of course, they’re making changes all the time so I’ll need to pull those changes down, and I don’t want any changes I’ve made to result in merge commits etc - so this is preferred in this case.