feat: command to simulate Merge/Pull Request #1120
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
git merge(M|P)R <source_branch> <target_branch> [--delete-after-merge]
command to simulate a Merge/Pull Request being merged into the target branch--delete-after-merge
will remove the merged branch on the origin treegit fetch
(it would requiregit fetch --prune
support to automatically prune remote tracking branches)Resolves #1057
Examples
Merging a feature branch
feat
intomain
onorigin
Merging a feature branch
feat
intomain
onorigin
when deleting it after mergingIf you
git fetch
after usinggit mergeMR
, the refo/feat
will still exist becausegit fetch
does not prune it by default:git fetch;
You can re-push the local branch, re-creating a remote branch, and updating the ref
o/feat
: