Viewing unpushed Git commits

前端 未结 25 2810
Happy的楠姐
Happy的楠姐 2020-11-22 08:05

How can I view any local commits I\'ve made, that haven\'t yet been pushed to the remote repository? Occasionally, git status will print out that my branch is X

25条回答
  •  萌比男神i
    2020-11-22 08:50

    As said above:

    git diff origin/master..HEAD

    But if you are using git gui

    After opening gui interface, Select "Repository"->Under that "Visualize History"

    Note: Some people like to use CMD Prompt/Terminal while some like to use Git GUI (for simplicity)

提交回复
热议问题