Our organisation is migrating from BitBucket to GitHub. We need to perform post-migration validation. Can someone please help with git commands for below:
Get count of commits per repository. I have already tried below ones but they are not giving correct output:
git rev-list --count [revision] git rev-list --all --count
Get count of open/merged/declined/ total PRs per repository.
Get count of number of lines in a git repository. (Tried this SO accepted answer but it's not giving correct output in my case https://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository#:~:text=Blank%20lines%20are%20counted.&text=This%20searches%20all%20files%20versioned,the%20total%20number%20of%20lines!&text=this%20works%20if%20you%20count,as%20the%20files%20of%20interest.)