简体   繁体   中英

not able to update local branch with master

I created new branch: private/feature from bit bucket master branch and fetched it to my local using git fetch origin .

Now I'm done with my changes but I see there is some sync issue between my local branch and master branch ie some changes are present in master and not in my local which is causing compilation issues in sdk.

I tried - git pull origin master branch , Already up-to-date

but now I see Your branch is ahead of 'origin/private/feature' by 373 commits.

I also tried :

git stash 
Git pull
git stash pop

but still same issue

What's the best approach for these kinda issues ?

With git fetch do not combine changes into your actual branch.

You need to use since your branch private/feature: git merge origin master or git rebase origin master for bringging changes of master 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