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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -