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 --countGet 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.)
git rev-list --all --count? ("they're not giving correct output")git rev-list --countdoesn't give the correct output ? more precisely : can you give more details on what actions you took (running it on your local working repository / on a fresh clone / on a colleague's clone / ... ) and what you expect (it looks like you expect to see a known number : is it a number that is displayed in bitbucket ? github ? your local repo ? )