git查看本地还未推送到远程的提交明细

git status 只能查看到本地当前有多少个提交还未推送,但看不到具体是哪些提交

$ git status
On branch dev_1.90.1
Your branch is ahead of 'origin/dev_1.90.1' by 3 commits.
  (use "git push" to publish your local commits)

如果想要查看具体是哪些提交未推送,可以使用命令:

git log  branch_name  ^origin/branch_name

 git查看本地还未推送到远程的提交明细_第1张图片

你可能感兴趣的:(Git)