Git diff - Viewing Unpushed Git Commits

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

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 commits ahead of origin/master, but not always.

Is this a bug with my install of Git, or am I missing something?

Answers

git log origin/master..HEAD

You can also view the diff using the same syntax

git diff origin/master..HEAD

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/2016901/viewing-unpushed-git-commits

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils