git diff <commitA> --name-status
Show the file names and status changes between commitA and the current branch
This command compares the changes made from the specified commit (--name-status
flag is used to show only the name and status of each file, without showing the specific changes made within the files.
Variations:
git diff <commitA> <commitB> --name-status
: Compares the changes between two specified commits and shows the file names and status differences.git diff --cached --name-status
: Compares the changes between the staging area and the latest commit, and shows the file names and status differences.git diff <branch> --name-status
: Compares the changes between the specified branch and the current working directory, and shows the file names and status differences.git diff HEAD~3 HEAD --name-status
: Compares the changes made in the last 3 commits, and shows the file names and status differences.
Specific examples:
git diff f8da76c6c169d2 --name-status