If you accidentally committed your code to the wrong branch, you don’t have to redo the work. IntelliJ IDEA offers a low-stress solution by allowing you to move your commit to a different branch using Git’s cherry-pick option.
Links
- (code)Â https://github.com/mlvandijk/git_tips
- (blog) Cherry-pick: Move a commit to a different branch
- (JetBrains – IntelliJ IDEA) Cherry-pick separate commits
- (Git documentation)Â Git cherry-pick
- (blog)Â Marco Behler:Â Git: Merge, Cherry-Pick & RebaseÂ
- (blog)Â IntelliJ IDEA: Resolving Merge Conflicts in Git
- (blog)Â Foojai.io:Â Resolving Git Merge Conflicts in IntelliJ IDEA