Skip to content

Instantly share code, notes, and snippets.

@clemensp
Created March 15, 2014 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clemensp/9561915 to your computer and use it in GitHub Desktop.
Save clemensp/9561915 to your computer and use it in GitHub Desktop.
checkmerge() {
git merge --no-ff --no-commit $1
if [ "$?" = 0 ]
then echo "Clean Merge!"
else echo "Merge Errors!"
fi
git merge --abort
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment