Skip to content

Instantly share code, notes, and snippets.

@pa-ulander
Created November 30, 2025 12:05
Show Gist options
  • Select an option

  • Save pa-ulander/aba125a636f560e943284e8a66cf4b6f to your computer and use it in GitHub Desktop.

Select an option

Save pa-ulander/aba125a636f560e943284e8a66cf4b6f to your computer and use it in GitHub Desktop.
Test merge before merging. Add mergetest alias to .gitconfig
[alias]
mergetest = "!f(){ git merge --no-commit --no-ff \"$1\"; git merge --abort; echo \"Merge aborted\"; };f "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment