---
title: "Discussion on \"How I Accidentally Committed Code to the Wrong Git Branch (And Fixed It Before Pushing)\" | Hashnode"
description: "Discussion on \"How I Accidentally Committed Code to the Wrong Git Branch (And Fixed It Before Pushing)\". Working with Git is part of every developer's daily routine. One common mistake that can happen during development is committing code to the wrong branch. Fortunately, if the commit hasn't been pushed"
url: "https://hashnode.com/posts/how-i-accidentally-committed-code-to-the-wrong-git-branch-and-fixed-it-before-pushing/6a4dfd372a62c1508c88fccc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I Accidentally Committed Code to the Wrong Git Branch (And Fixed It Before Pushing)](https://technotesbysumit.hashnode.dev/how-i-accidentally-committed-code-to-the-wrong-git-branch-and-fixed-it-before-pushing?utm_source=hashnode&utm_medium=feed)

Working with Git is part of every developer's daily routine. One common mistake that can happen during development is committing code to the wrong branch. Fortunately, if the commit hasn't been pushed

Jul 8 · 3 min read · technotesbysumit.hashnode.dev  
Read the article

## Written by

[Sumit Prasad](https://hashnode.com/@sprasad035)

@sprasad035

  
[View profile](https://hashnode.com/@sprasad035)

DevOps & Middleware Engineer, Experienced in WebLogic | Jenkins | CI/CD pipelines | .NET MVC and Azure DevOps

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
