Code: Select all
git fetch --all
git checkout -B master origin/master
The best part about this is, you can put it in a batch file and you don't have to fudge around with old commits, it's automatic and quick.
Moderator: GZDoom Developers
Code: Select all
git fetch --all
git checkout -B master origin/master
doomed_stranger wrote:@Graf: that is where "git revert" is useful: just revert everything done wrong, and commit The Right Thing. this way no history is broken. so it *can* be fixed without history rewriting.