eilagcy

2 weeks ago

Check what is committed?

Hi,

If I create a file1 , stage file1 , then do a commit with -m option , how do I see if the commit includes file1?

Now if I create file2 , stage file2 , then do a commit with -a and -m option, how do i see if the commit includes file2?

Now if i create file 3, do not stage it, then do a commit with -a and -m option , how do i see what are the files included in this commit?
Regards,AC


Image of keiththomps
keiththomps
1 week ago
A good option is to run `git log` to see your commits, and then you can grab the SHA for an individual commit and you can see its contents by using `git show [SHA]`.