---
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, it happens.\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..."
url: "https://hashnode.com/posts/rewinding-a-remote-branch-git/5f1eb109fdeb6a136cfc5a40"
---

[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, it happens. 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...

Jul 27, 2020 · 1 min read · sys.limistah.dev  
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.
