iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🌿

How to dry-run a Git merge

に公開

This is the kind of topic you can find plenty of information on if you search, but since I tested it myself, I'm documenting the method here.

$ git merge --no-commit --no-ff branch-name

If there are no issues, commit.
To revert, run the following.

$ git merge --abort

Personally, I find this useful as I'd rather verify the changes once than merge them immediately.

GitHubで編集を提案

Discussion