question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow customizable branch name

See original GitHub issue

Some repos now use the name main instead of master. This project seems to assume that the primary branch is named master. I’d like to request that the name of the primary branch be customizable.

For example:

$ git-delete-squashed --into main
$ git-delete-squashed --into primary
$ git-delete-squashed --into dev

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

4reactions
teppeiscommented, Jan 12, 2021

FYI: I’ve published forked package @teppeis/git-delete-squashed supporting for main or other custom default branches. https://github.com/teppeis/git-delete-squashed#guessing-default-branch-difference-from-original

2reactions
openjckcommented, Aug 16, 2020

It seems that git-delete-merged-branches may support this, including for squashed merges.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize branch name when using create branch in an issue
Customize branch name when using the create branch button in an issue. The default name is shown. You can change it something else....
Read more >
Add Enforceable Custom Branch Naming Rules
We need to restrict users to create new branch names with special characters in it. The branch name should only allow hyphen or...
Read more >
Be able to customize the branch name when starting work on ...
This allows you to customize the branch name, the default is "githubIssues.workingIssueBranch": "${user}/issue${issueNumber}" ...
Read more >
How to set up Git branch protection rules - Spectral
Branch Name – Name of the branch to be protected. · Allowed To Merge – You can select the role that is allowed...
Read more >
Change branch name when running custom build in Teamcity
If you are want to start build with custom branch then press Run... -> Changes -> select your custom branch from Build Branch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found