admin管理员组文章数量:1435741
I had a project working with Git and encountered a phenomenon whereby running git pull
returned the following message:
Already up to date.
My local branch content differs from the contents found in the remote.
For example,
A colleague committed changes to the remote branch, though these didn't happen in my local copy after the pull.
I have the different history of the branch seen in my local repository from that seen on the actual remote repository, including lost commits.
Here’s what I’ve tried so far:
- Checked the branch I was working on with git branch.
- Checked the repository URL of the remote using git remote -v to match the actual repository.
- It compares the commit history with git log on my local and remote branches.
Here's what I suspect is going on:
My local branch is ahead of the remote branch. The remote might have changes that git pull doesn't pick up on.
本文标签:
版权声明:本文标题:github - Git pull is showing me "Already up to date" even though my branch is not in sync with the remote - St 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745638750a2667723.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论