Is there a Git command I can use that will list the names of all files that exist in one branch that do not exist in another branch?
Background: Someone deleted some history and then pushed origin/master. Some team members have been saying they are missing some files. I think I have recovered the missing files with a patch that I created from diff commands. I branched master after the point where history was deleted and applied my patch to the new branch. Now I'd like to simply see what files exist in the new branch that do not exist at the HEAD of the master branch. For now I just want the file names, regardless of content, and only for files that exist in the new branch and do not exist at the HEAD of master.
git diff-tree
and then specify a--diff-filter=D
,git help diff-tree
for details – Prosegit diff-tree -r --diff-filter=D branchA branchB
– Cockerham