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.

Required fields*

2
  • Keywords for your search are: Reset (not revert) your branch to the earlier commit and force-push to your fork. Commented Sep 30 at 5:52
  • Thanks @j6t I had tried reset before but had an error in the command; after your suggestion I tried again with just "git reset --hard" and that worked, then pushed the new branch with "git push -u origin doc" then did a "git push --force". So my 1st question is resolved. Will update the post. Commented Sep 30 at 6:21