Bash-it / bash-it

A community Bash framework.
MIT License
14.3k stars 2.29k forks source link

Add more aliases for `git merge` and `git rebase` #2223

Closed bittner closed 3 weeks ago

bittner commented 1 year ago

Adds Git aliases for merging are rebasing, which are needed when conflicts occur.

Description

For a better user experience, the same pattern for constructing the aliases is applied for merge and rebase. The aliases also largely match the ones provided by OMZ. gms is inspired by OMZ (I have never used it, personally).

Motivation and Context

When working with branches conflicts can occur and need to be resolved. This may involve options like --continue and --abort for merge and rebase. Some developers may even want to perform --interactive rebasing.

How Has This Been Tested?

I have the identical changes integrated in a fresh, local installation of Bash-it on my developer laptop.

To verify that the aliases don't conflict with existing ones, I have grepped the current repository HEAD for "gma", "gmc", "gms", "grba", "grbc" and "grbi".

Types of changes

Checklist:

bittner commented 1 year ago

Note that, as a topic, this is related to PR #2220, but the changes don't overlap.

The lint job fails for reasons that are unrelated to the changes in this PR.

bittner commented 1 year ago

Would someone mind merging this PR?

bittner commented 1 year ago

This PR looks like it would be ready for merging! :pretzel:

bittner commented 8 months ago

Hey there, this is a great enhancement! It makes the Git experience even more consistent than it is today. :smiley:

Easy choice. Go ahead, review and merge it! Now. :100: :dart: :bow_and_arrow: :bowing_woman: