Last active
February 23, 2023 10:04
-
-
Save kewang/e97b0018237a65c6f80951bee4715a9b to your computer and use it in GitHub Desktop.
Git merge dry-run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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