8
nerd-san
11d

"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
  • 2
    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.
  • 3
    git reflog to reclaim something at least?
  • 1
    @SortOfTested that's saved me more than once.
  • 1
    @ltlian “With great power comes great responsibility”

    Or that sinking feeling of “ oops””
Add Comment