I work in a small startup, we have 10 people in Frontend Team. 2 SDE-2, rest all SDE-1.
I joined as Sde-1, when I joined them, we were 4(2 SDE-2 and 2 SDE-1).
At the time of joining, they had a messy codebase, nobody cared about writing good, optimized code etc.
Whenever I got chance to work on old feature, I used to re-write entire code from scratch, made reusable functions, components and moved common functionalities there, all these made the UI better, platform stable.
Worked on optimization and performance. These folks never cared about all these things.
Also started peer reviewing everyone's PRs, explained them various design patterns and made them write re-usable components, optimized, bug-free code and other things.
Now I came to know, all these efforts of my mine never reached my manager to due manipulation by one of the SDE-2.
My manager likes this guy and allowed him to handle the FE team.
This guy has shown that he's the one who took all these initiative and he got all these things done by the team.
He involved the other SDE-2 in this game.
Fast forward 1 year, I see most of my code has been slightly modified by him, moved to new file and my actual file is deleted.
He has done this in order to remove my GitHub history.
I'm now getting frustrated and don't know how to handle this.
Resigning is not an option and raising with manager won't help as he's slightly biased and won't believe me.
Any help would be appreciated.
TIA