---
title: "Discussion on \"How to undo a git push to a remote repository.\" | Hashnode"
description: "Discussion on \"How to undo a git push to a remote repository.\". Sometimes while working on a project, you may often get carried away. For Instance, forgetting to create a new repository locally for a separate project after cloning it or committing to a wrong branch.\nIt becomes a problem when you suddenly realize ..."
url: "https://hashnode.com/posts/how-to-undo-a-git-push-to-a-remote-repository/60620783269085751d2006d7"
---

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

Discussion

# [How to undo a git push to a remote repository.](https://yuhcee.hashnode.dev/how-to-undo-a-git-push-to-a-remote-repository?utm_source=hashnode&utm_medium=feed)

Sometimes while working on a project, you may often get carried away. For Instance, forgetting to create a new repository locally for a separate project after cloning it or committing to a wrong branch. It becomes a problem when you suddenly realize ...

Mar 29, 2021 · 3 min read · yuhcee.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)

## Written by

[Uchenna Egbo](https://hashnode.com/@yuhcee)

@yuhcee · Lagos, NG

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

Software Engineer, Writer, Human

I am a Software Engineer from Nigeria, here to write and learn by helping others learn from my experience, the characteristics of who I became today, and on a journey of who I become tomorrow. No assurances it'd be a sweet ride but it will be well worth it. Welcome aboard... YuhCee Musings.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
