Cannot see changes staged for commit using git diff -


what want to view changes committed local repo against remote one.

when git status i'm getting:

on branch develop   branch ahead of 'origin/develop' 6 commits.     (use "git push" publish local commits)     nothing commit, working directory clean   

as discussed in how show changes have been staged?

one (two) of git diffs should work. unfortunately in case of them return nothing.

git diff //empty - seems fine  git diff --cached //empty  git diff head //empty 

am missing something?

you have committed changes.

diff show difference between index , repository.

if want view changes between local repository remote repository this:

git fetch --all --prune git log ^master origin/master  // or: git log master ^origin/master 

the difference between 2 lines 1 display pull diff while second 1 display push diff.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -