Git diff HEAD before ever commiting -


i'm quite new git. question concern execution of git diff head command before ever commiting. know head doesnt exist until had commited something. how do difference between working directory & initial state of repo.

i know command gives difference between working directory & index (stage):

git diff   

and following command gives difference between index & repo:

git diff --cached 

i guess git commit --allow-empty without adding if you really want diff first "real" commit adds things.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -