moses toh
moses toh

Reputation: 13172

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

enter image description here

How can I solve this problem?

Upvotes: 4

Views: 5218

Answers (2)

brianrobt
brianrobt

Reputation: 427

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.

Upvotes: 2

retryW
retryW

Reputation: 693

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.

Upvotes: 4

Related Questions