最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

github - Git pull is showing me "Already up to date" even though my branch is not in sync with the remote - St

programmeradmin1浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论