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
Post a Comment