Git - 'Your branch is ahead of "X" by "X" commits.'
Git - 'Your branch is ahead of "X" by "X" commits.'
我一个人在做一个项目,它有两个分支:main 和 deployment。
这是我正在 运行 正在执行的命令和我在终端中收到的消息的 运行down。
在分支部署中:git 状态
您的分支领先 'origin/deployment' 13 次提交。
(使用“git push”来发布你的本地提交)
没有什么可承诺的,工作树干净'
在分支部署中:git推送https://github.com/name
一切都是最新的
在分支部署中:git 状态
在分支部署
您的分支领先 'origin/deployment' 13 次提交。
(使用“git push”来发布你的本地提交)
没有什么可承诺的,工作树干净'
在分支部署中:git checkout main
主要的
切换到分支 'main'
您的分支领先于 'origin/main' 2 次提交。
(使用“git push”来发布你的本地提交)
在主分支上:git push https://github.com/name
一切都是最新的
在主分支上:git 状态
在分行主
您的分支领先于 'origin/main' 2 次提交。
(使用“git push”来发布你的本地提交)
没有什么可提交的,工作树干净
所以在我将 main 与部署合并并推送到 github 后,我得到了这个 git 历史记录。一切都没有错误。插入和删除都应用于实时站点。
如您所见,我的历史显示我仍有要推送的更改,但是当我推送时,没有任何内容被推送,如果我 运行 git 状态,它说我仍然有要推送的更改。
塔纳斯发生了什么事?
运行宁git远程-v
(fetch) 和 (push) 来源都匹配
运行宁git取
76373fb...22b0csd 主要 -> origin/main
019287b...22b0csd 部署 -> origin/deployment
第一个问题:
Git - 'Your branch is ahead of “X” by “X” commits.'
这是一条常见消息:通常无需担心。
第二题:
My history as you can see is showing i have changes to push still but
when i do push nothing gets pushed and if i run git status after it
says i still have changes to push.
请运行git fetch
.
就个人而言,我通常 运行 git pull --all
这是一个很好的讨论:
Git Fetch vs Pull: What's the Difference Between the Git Fetch and Git Pull Commands?
我一个人在做一个项目,它有两个分支:main 和 deployment。
这是我正在 运行 正在执行的命令和我在终端中收到的消息的 运行down。
在分支部署中:git 状态
您的分支领先 'origin/deployment' 13 次提交。
(使用“git push”来发布你的本地提交)
没有什么可承诺的,工作树干净'
在分支部署中:git推送https://github.com/name
一切都是最新的
在分支部署中:git 状态
在分支部署
您的分支领先 'origin/deployment' 13 次提交。
(使用“git push”来发布你的本地提交)
没有什么可承诺的,工作树干净'
在分支部署中:git checkout main
主要的
切换到分支 'main'
您的分支领先于 'origin/main' 2 次提交。
(使用“git push”来发布你的本地提交)
在主分支上:git push https://github.com/name
一切都是最新的
在主分支上:git 状态
在分行主
您的分支领先于 'origin/main' 2 次提交。
(使用“git push”来发布你的本地提交)
没有什么可提交的,工作树干净
所以在我将 main 与部署合并并推送到 github 后,我得到了这个 git 历史记录。一切都没有错误。插入和删除都应用于实时站点。
如您所见,我的历史显示我仍有要推送的更改,但是当我推送时,没有任何内容被推送,如果我 运行 git 状态,它说我仍然有要推送的更改。
塔纳斯发生了什么事?
运行宁git远程-v
(fetch) 和 (push) 来源都匹配
运行宁git取
76373fb...22b0csd 主要 -> origin/main
019287b...22b0csd 部署 -> origin/deployment
第一个问题:
Git - 'Your branch is ahead of “X” by “X” commits.'
这是一条常见消息:通常无需担心。
第二题:
My history as you can see is showing i have changes to push still but when i do push nothing gets pushed and if i run git status after it says i still have changes to push.
请运行git fetch
.
就个人而言,我通常 运行 git pull --all
这是一个很好的讨论:
Git Fetch vs Pull: What's the Difference Between the Git Fetch and Git Pull Commands?