I have an issue with my git repositories. My development branch "origin/master" (local) is up to date but the "stage/master" (remote) branch is behind.
Now i want the "stage/master" up to date with the origin/master branch.
How do i solve this issue?
I would like to keep the structure (not merging the two branches together)
Note: if it isn't obvious.. i'm quite new to git
You can do that on terminal :
git checkout master #if you are not on it
git push -f stage master
But be sure of what you do, you can't revert. It look like stage/master
have some commit, is it possible somebody else has work on it ? if this is the case, you will erase his work.
Edit : if you want to keep the work on stage/master you have to merge it, then you push it on you origin/master and after all your repos will be synced.
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.