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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy