简体   繁体   中英

How do I make a pull request from the master to the staging branch?

I have many changes in the master. I want to do a pull request to the staging branch so that it can later merge to staging. I tried as the picture below, but nothing changes

在此处输入图像描述

How can I solve this problem?

Rebase

If you are trying to ensure staging is back at the same state as 'master' you can "re-base" it:

From the 'staging' branch

git rebase master


Alternatively :

Have you made sure to push your local commits to github (remote)?

First ensure you're on the new branch:

git checkout staging

** Make some changes to local files example.js

Stage any changes made in the project directory:

git add.

Commit the changes locally:

git commit -m "My commit message"

Push the commit to the remote (github):

git push origin staging

If you try to make a pull request into 'master' on github you should now see the new commit.

Switch the base from master to staging . The base branch is the branch that you are going to merge into.

Furthermore, Github explains:

After initializing a pull request, you'll see a review page that shows a high-level overview of the changes between your branch (the compare branch) and the repository's base branch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM