GitAlias / gitalias

Git alias commands for faster easier version control
2.45k stars 328 forks source link

Modify topic-base-branch-name #43

Closed eralumin closed 3 years ago

eralumin commented 6 years ago

Set default branch according to HEAD position.

joelparkerhenderson commented 5 years ago

Thanks for the suggestion. Can you help me understand how your code ensures that it finds the right branch name that a user wants to use for creating a new topic branch?

The existing code always returns "master", which surely isn't right for everyone. For example, some teams use a branch named "develop", some teams use a branch named "trunk", etc.