| Define different ways to get list all change files after Git Commit?
If your a programmer and working on projects there are certain situation when programmer need to check all files that are modified after Git Commit. Some time programmer look for changes done during various commits before pushing their code to Git Repository. Below are the different ways to get all changes files:-
(1)By using git log:-This is very popular method to get all commit id and changes done through this commit ID by using git log command. We use git log -p command that will provide you all the Commits along with the changes done in each Commit.
git log -p
(2)By using git show:-By using this command we can check all the changes done on a Specific Commit ID.
git show < Commit ID>
or
git show b4a7655b6821c4d1901
(3)By using git diff:-git diff command to check the list of files modified between two Commit IDs
git diff --name-only < StartCommitID>..< EndCommitID>
or
git diff --name-only 8349ce8b0f67686f2d..9219b4a7655b6821c4d1901
| | |