[英]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.