Quantcast
Channel: Undoing a git rebase - Stack Overflow
Viewing all articles
Browse latest Browse all 23

Answer by cansu for Undoing a git rebase

$
0
0

Somehow git reset does not give desired cleanup result on my branch. For such cases if you don't push rebase commits to your branch, I have a guaranteed way of resetting my branch and here are the steps :

  1. Switch another branch (any of them)
  2. Delete branch(you want to reset) from your local with this command :

git delete -B [branch-name]

  1. checkout to existing branch again :

git checkout [branch-name]


Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>