Skip to content

Instantly share code, notes, and snippets.

@kewang
Last active February 23, 2023 10:04
Show Gist options
  • Save kewang/e97b0018237a65c6f80951bee4715a9b to your computer and use it in GitHub Desktop.
Save kewang/e97b0018237a65c6f80951bee4715a9b to your computer and use it in GitHub Desktop.
Git merge dry-run
#!/bin/sh
BRANCH=$1
git merge --no-commit --no-ff $1; git status; git merge --abort
# References: https://stackoverflow.com/questions/501407/is-there-a-git-merge-dry-run-option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment