---
title: "Discussion on \"Rewinding a remote branch [GIT]\" | Hashnode"
description: "Discussion on \"Rewinding a remote branch [GIT]\". You were working in a feature branch but accidentally pushed commits to the master/develop branch.\nFirst, you have to know the exact commit ID or number of commits that was pushed. You can use git log pretty=oneline to get the information.\nIf you don..."
url: "https://hashnode.com/posts/rewinding-a-remote-branch-git/5f1eb0d5fdeb6a136cfc5a3a"
---

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

Discussion

# [Rewinding a remote branch \[GIT\]](https://sys.limistah.dev/rewinding-a-remote-branch-git?utm_source=hashnode&utm_medium=feed)

You were working in a feature branch but accidentally pushed commits to the master/develop branch. First, you have to know the exact commit ID or number of commits that was pushed. You can use git log pretty=oneline to get the information. If you don...

Jul 27, 2020 · 1 min read · sys.limistah.dev  
Updated Nov 20, 2023  
Read the article

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

## Written by

[Aleem Isiaka](https://hashnode.com/@limistah)

@limistah · Lagos, Nigeria

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

Carefully getting things done.

Developer and Builder 🔨⚒️⚙️

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
