A newbie to Git. I am in the process of migrating a project from ClearCase to Git. The code has been committed to my local Master repository by me. I am ready to push the code to THE Repository However, I wanted to count as to how many files will be pushed before I do the push. As a measure of cross verification. I have tried following options:
git diff --numstat | wc -l
git diff --numstat
git diff --cached --stat
git rev-list HEAD --count
git diff <lastCommit>
git whatchanged -1
But none of them gives me the count of files. Is there a git command existing to count the numbers of files being pushed to Main Repository before actual Push ?