0

I just rebased a Git branch called chattisekoilua onto the master branch of my project, did something stupid on chattisekoilua (as in deleted some files I shouldn't have) and would like to set the state of the chattisekoilua branch to the moment right after the rebase.

How could I accomplish this? I've not made any commits after the rebase, if that's relevant.

sesodesa
  • 1,473
  • 2
  • 15
  • 24

1 Answers1

1

That's easy - just do:

git reset --hard

Warning: this discards any uncommitted changes without asking for confirmation!

Robin Green
  • 32,079
  • 16
  • 104
  • 187
  • I'm assuming this sets the state of the branch to the last commit. – sesodesa Dec 02 '18 at 16:24
  • @TheSodesa Yes, that's right. But the state of the branch is already correct - it's just the working tree (and possibly the index) that will be changed. – Robin Green Dec 02 '18 at 16:25