How to view the committed files those you have not pushed yet?

how to view the committed files those you have not pushed yet

Usman Ali at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

The push command has a -n/--dry-run option which will compute what needs to be pushed but not actually do it. Does that work for you?

Noufal Ibrahim

git diff HEAD origin/master Where origin is the remote repository and master is the default branch where you will push. Also, do a git fetch before the diff so that you are not diffing against a stale origin/master. P.S. I am also new to git, so in case the above is wrong, please rectify.

N 1.1

Assuming you're on local branch master, which is tracking origin/master: git diff --stat origin/master..

bstpierre

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.