- Looking for a command like
ls -Rordir/sthat can list all files in a commit/branch. - Is there any command that can compare two files from different branches?
Looking for a command like ls -R or dir/s that can list all files
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
git ls-tree -r --name-only <commit>(where instead of<commit>there can be<branch>).You might want to use also
-toption which lists subdirectories before descending into themgit diff <branchA>:<fileA> <branchB>:<fileB>,or if you want to compare the same file
git diff <branchA> <branchB> -- <file>