Skip to content

New FAQ: how to recover from committing to the wrong branch? #51

Description

@drphilmarshall

Answer: first capture the commit (by starting the branch you wish you'd been on, or cheking out the right branch and cherry-picking the commit(s)). Then go back and clean up the wrong branch with git revert.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions