How To Cancel Merge Git Code Example


Example 1: git undo comflicted merge


git merge --abort

Example 2: abort merge git


git merge --abort

Example 3: undo a git merge


git reset --hard HEAD~1
git reset --hard <commit_sha>

Example 4: git stop merge


git reset --hard HEAD

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable