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.