Context:
I just got hired as a software developer in a team which has freshly transitioned from networking to development. Before me they hired another developer a year ago who has been since then given a senior role. He is the only other developer by background in that team. This senior developer and I have graduated from the same college and program as well, and this is also our both first job, the only difference being he graduated from college before me, being older than me. I am saying this to explain how much of a difference he and I have in professional experience.
Our manager is not technical, and therefore he is one of those "I care about how much money did it save the company."
Problem:
Because of him being the only developer in the team for more than a year, no one challenged his opinions and ideas on how processes should work. When I joined the team, I saw a team not using Git/GitHub correctly or straight up not using it, no documentation, pushing code directly to production boxes, no collaboration, and manual if some testing. (Things are not that bad. The team is learning, and they realized they aren't following the best practices.)
When I joined, as in any other team, I started putting my ideas forward, but I am always met with a condescending response ("Do you even know insert given topic") by this senior developer. The rest of the team and manager just side with the senior. When I asked them why, the conversation went somewhat like this:
Me: Why do you think this is okay?
Team & manager: He is senior and he knows more.
Me: Why do you think he knows more?
Team & manager: Dude, he uses Linux as his development environment, and he knows a lot.
(That Linux comment actually happened.)
So, I decided to stop getting myself insulted and just do my own thing until maybe more developers are hired and/or we get a technical manager. However, recently I was told to collaborate with this senior on a project, and as usual he denied my ideas...which was okay. I decided to play by his rules (not worth my time) until I recently saw my branches and commits being deleted because he had something else in his plan, which was not communicated to anyone.
I am still on probation and don't want to cause a drama, but it's getting hard not to.