FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Git said everything merged fine. My code was gone.
How-ToSecurity

Git said everything merged fine. My code was gone.

via Dev.to TutorialNico Reyes3h ago

Merged a feature branch yesterday. Git said zero conflicts. Pushed to main. My entire authentication module disappeared. Three hours of code just vanished. Spent an hour thinking Git was broken. It wasn't. I was using merge wrong. What happened Working on two branches: feature/auth adding OAuth login feature/ui updating frontend Both touched app.py but different sections. Merged feature/auth first, worked fine. Then merged feature/ui . git checkout main git merge feature/ui # "Auto-merging app.py" # "Merge made by the 'recursive' strategy" Zero conflicts. Pushed it. Authentication broke immediately in production. Pulled the code. My OAuth functions were completely missing. Not commented out, not broken, just gone. The file looked like I never wrote them. Why it happened Git merged the file correctly based on the branches. Problem was feature/ui was created BEFORE I merged feature/auth . So from Git's perspective: main at time T: has basic auth feature/ui branched from T: has basic auth

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

How-To

What I learned about X-HEEP by Benchmarking

Medium Programming • 3h ago

No more Chinese Polestar 3s as production shifts entirely to the US
How-To

No more Chinese Polestar 3s as production shifts entirely to the US

Ars Technica • 4h ago

How-To

The most important 40 mcq with its answers How to use Android visual studio to make a mobile app

Medium Programming • 4h ago

What is Agent Script? How to Build Agents with It in Agentforce
How-To

What is Agent Script? How to Build Agents with It in Agentforce

Medium Programming • 4h ago

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.
How-To

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.

Medium Programming • 5h ago

Discover More Articles