5

I ran `git rebase` on a shared branch and pushed it to the origin. It messed the whole history. I tried a few things to fix what I did (I don't remember the commands I tried) but I only made it worse.

The final result? Even though I was new to the project, every old commit in the history was changed to include my name as the author of that commit.

Lesson learned the hard way :hands_down_emoji:

Comments
  • 0
    My mantrafor git: dont lie!
    Rebase changes the history -for what reason would u want to do that?
    U should first learngit before u use such festures.
    Rebase is only ok for ur iwn brsnch that noone else has checked out.
  • 2
    Oh God. I squashed the history of my local feature branch today and I was imagining something like this. I even had to use vim. It felt like I was doing rocket surgery.
  • 0
    You should only do git rebase to your own local feature branch
Add Comment