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.
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?
如果你执行git log origin/master..HEAD
,它应该显示所有未被推送的提交(当然,假设你在master上)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.