简体   繁体   English

如何查看尚未推送的提交列表?

[英]How do I view the list of commits that haven't been pushed yet?

I like documenting minor changes as separate commits and finally use git interactive --rebase to combine commits and change commit messages like I deem appropriate. 我喜欢将次要更改记录为单独的提交,最后使用git interactive --rebase来组合提交和更改提交消息,就像我认为合适一样。

Is there a way to determine which commits I haven't pushed yet without manually checking Github ie is there a way to find out from the shell? 有没有办法确定哪些提交我还没有手动检查Github,即有没有办法从shell中找到?

如果你执行git log origin/master..HEAD ,它应该显示所有未被推送的提交(当然,假设你在master上)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何撤消尚未推送的提交? - How do I undo commits that haven't been pushed yet? Git:如何确保不将哈希提交/推入尚未推送到远程的子模块? - Git: how do I make sure I don't commit/push hashes to submodules which haven't been pushed to remote yet? 如何修复我的本地存储库,以便我可以保存尚未推送到主 git 存储库的提交的工作? - How do I fix my local repo so I can save work from commits that haven’t been pushed to the master git repo? 当我还没有推送时,如何对旧提交进行一些小的修复? - How to make a small fix of an old commit when I haven't pushed yet? 什么是git命令来删除尚未推送到远程的不需要的提交? - What is the git commands to delete unwanted commits that haven't been pushed to the remote? 如何将已推送的提交从 X 压缩到 Y? - How do I squash Commits from X to Y that have already been pushed? 如何检查哪些提交未被推送到原点? - How can I check which commits have not been pushed to origin? 我合并了一个分支,并不是所有的提交都被推送了。 如何添加剩余的提交? - I merged a branch, and not all commits had been pushed. How to add the remaining commits? TortoiseGit:我怎样才能看到即将推送的提交列表 - TortoiseGit: How can I see a list of commits that are about to be pushed 在GIT中,如何防止人们更改或删除已经推送的提交? - In GIT, how can I prevent people from changing or removing commits that have already been pushed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM