9
nerd-san
293d

"git checkout HEAD ." Instead of "git reset HEAD ." Smeg! Just shoot me. I'm going to bed and restarting in the morning like today never happened.

Comments
  • 3
    My version of this is 'git checkout branchname path/to/file .' because I want to copy from the path to here. I've done it three times now.

    It's like dropping a table in sql. No confirmation dialog. No warning. Just a silent "ok" and new console line.
  • 5
    git reflog to reclaim something at least?
  • 2
    @SortOfTested that's saved me more than once.
  • 3
    @ltlian “With great power comes great responsibility”

    Or that sinking feeling of “ oops””
  • 0
    @SortOfTested who's a what now? I spent 20 min trying to see if i could undo what I did. Thanks for the tip, will need to check that out.
Add Comment