Skip to content

Conversation

bittner
Copy link
Contributor

@bittner bittner commented Oct 1, 2023

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@bittner
Copy link
Contributor Author

bittner commented Oct 1, 2023

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
Copy link
Contributor Author

bittner commented Nov 2, 2023

Would someone mind merging this PR?

@bittner
Copy link
Contributor Author

bittner commented Nov 3, 2023

This PR looks like it would be ready for merging! 🥨

@bittner
Copy link
Contributor Author

bittner commented Mar 10, 2024

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

Easy choice. Go ahead, review and merge it! Now. 💯 🎯 🏹 🙇‍♀️

Copy link
Contributor

@seefood seefood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@seefood seefood merged commit 998e1d6 into Bash-it:master Nov 5, 2024
@bittner bittner deleted the patch-6 branch April 12, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants