Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人能告诉我为什么 git 反复告诉我我领先于荒谬的提交数量(实际上我不是),以及为什么我需要推动以使 git 意识到这一点?
> git status # On branch dev # Your branch is ahead of 'origin/dev' by 230 commits. >git push origin dev Everything up-to-date
没什么大不了的,但在推动时总是会有点肾上腺素激增。
当我收到# Your branch is ahead of 'origin/dev' by x commits.消息时,git fetch通常会为我修复它。
# Your branch is ahead of 'origin/dev' by x commits.
git fetch