wesleyatci
9/15/2017 - 4:57 PM

how to merge a git branch to existing branch and revert the merge

# current branch is dev
git branch
*dev

# Merge branch new_feature to dev
git pull origin new_feature

# revert back the merge
git reset --hard origin/dev