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.

Support non-default base branch

See original GitHub issue

I was reading the docs and was curious as to whether creating stacks off of non-default base branches was possible. I couldn’t find an answer there, so I looked at the code and it seems like not. Would it be possible to make the base branch configurable?

As some potential inspiration, the GitHub CLI supports this in the following way:

gh pr create -B my_base_branch

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ezyangcommented, Sep 15, 2021

So you run ghstack in detached state and then use the git hash to revisit a commit to make any changes requested on a PR?

Yep. ghstack checkout BLAH also puts you in a detached state

1reaction
ezyangcommented, Aug 30, 2021

Sure, I’d accept a PR that adds this. Should be relatively simple to add support for a -B flag here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the default branch - GitHub Docs
The default branch is the base branch for pull requests and code commits. For more information about the default branch, see "About branches."...
Read more >
Base vs default branch in bitbucket version of git
In Bitbucket, the base branch is the last branch that you have selected from the list of branches. If you select another branch...
Read more >
GitHub pull request base branch is not the same ... - YouTrack
GitHub always suggests default branch of a repository when creating a pull request and I don't see a reason to change that. New...
Read more >
NoDefaultBranchException error regarding the default branch
Atlassian Support · Documentation · Stash Knowledge Base · Miscellaneous ... error regarding the default branch - this branch does not exist ......
Read more >
Default branch - GitLab Docs
Protect initial default branches. all tiers. self-managed · Not protected - Both developers and maintainers can push new commits and force push. ·...
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