#list diff files in branches branch1="v1"; branch2="v2"; branch3="v3"; echo "diff of files in $branch1 vs $branch2" git diff-tree --no-commit-id --name-only -r $branch1 $branch2 #list by branch echo "Show files in $branch2" git ls-tree -r --name-only $branch2 #Remove branch - make sure the branch is not checked out git branch -D v3 #get a copy of the latest version of files git archive 8a42c06| tar -x -C /tmp/versionX git archive 9bb19a5 | tar -x -C tmp #get abc from :! git log --all --oneline --decorate --graph -- 9bb19a5