Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 18
    Sounds like all you wanted to do is a branch from a different commit than the one it is created from now. If my understanding is correct, then why don't you simply create a new branch from the commit you want to create it from using git branch <branch-name> <SHA-1-of-the-commit> and dump the old branch?
    – yasouser
    Commented Mar 29, 2011 at 20:31
  • 17
    @yasouser - I am not sure whatever dumping "master" branch is a good idea. Commented Mar 24, 2013 at 11:49