If you are using a Git repository you can get that information by running this command:
git diff --shortstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904
It returns the total number of files and lines (intersections) in the working directory of the repository.
Bitbucket does not give you this information without using an app.
Hi Mikael,
Thank you for the answer.
What is the series of the number? Please may I know . Do I need to refer any repo?
4b825dc642cb6eb9a060e54bf8d69288fbee4904
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That sha1 number is for the empty repository, so the diff is comparing your current working directory against the empty one in order to get the number of files and lines.
You have to run the command within your repository for it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Packialakshmi,
My colleagues have written an article about counting lines of code in a repository using the app called Awesome Graphs for Bitbucket. Hope it will help.
Kind regards,
Uladzislava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.