I have created a branch in repository and I did pull followed by push but the branch is still showing 32/332 behind and ahead status. How to keep my branch updated like 32/0 like 32 are the changes I made and 0 ahead of me
Try and see if a git pull --rebase
would help
That would replay your local commits on top of the remote one.
Check first that your branch is indeed associated to a remote tracking one with:
git branch -avv
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.