Skip to content

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

@drphilmarshall

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.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions