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.

go back to the previous branch after creating a PR

See original GitHub issue

After running shipjs prepare, user ends up on a branch like releases/vx.y.z. What if we checkout the previous (base) branch after creating the PR?

Ship.js checking out to a release branch is not so much clear to users, so it might confuse them.

(a) Should we add more message to clarify it? (b) or should we checkout the previous branch because there’s no(or less) reason to stay on the release branch?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
uetchycommented, Dec 24, 2019

Maybe something like that?

You are currently on releases/vX.X.X branch, the purpose of which is to make changes to release materials including CHANGELOG.md, and continue to prepare the next release. PR url here

Otherwise, you can safely check out another branch and get back to your development iteration.

0reactions
uetchycommented, Dec 24, 2019

@eunjae-lee yeah that’s a good idea to show command to checkout previous branch. I created PR #554 for this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reverting a pull request - GitHub Docs
Near the bottom of the pull request, click Revert. If the Revert option isn't displayed, you'll need to ask the repository administrator for...
Read more >
Using Git — how to go back to a previous commit - Medium
Go back to the selected commit on your local environment​​ Use git checkout & the ID (in the same way you would checkout...
Read more >
How to PR and merge again after reverting PR using Github ...
Just revert the revert. So by clicking the revert button you will have created a new PR (your step 2). Once this is...
Read more >
How can I restore a previous version of my project?
Returning to an Old Revision. The fastest way to restore an old version is to use the "reset" command: $ git reset --hard...
Read more >
How to Easily Revert Git Pull Requests - LinearB
The Non-Destructive Way: The Git Revert Command · The first step would be to create a branch off of main—or whatever your default...
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