Posted on :: Updated on ::

Merge Strategies

If there're too many conflicts, and you just want to either accept our/their code, you can use flag -X theirs or -X ours with all git commands doing either merge/rebase.

Currently onCommandStrategyOutcome
mastergit merge feature-XtheirsKeep changes from feature branch
mastergit merge feature-Xourskeep changes from master branch
featuregit rebase master-XtheirsKeep changes from feature branch
featuregit rebase master-Xourskeep changes from master branch

Show current head

git rev-parse HEAD