Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get total github lines

git ls-files | xargs wc -l
Comment

how to count total lines of code of a github repo

To search total line count by file type:

git ls-files | grep '.py' | xargs wc -l
Comment

get total github lines

$ cloc-git https://github.com/evalEmpire/perl5i.git
Cloning into 'temp-linecount-repo'...
remote: Counting objects: 200, done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 200 (delta 13), reused 158 (delta 9), pack-reused 0
Receiving objects: 100% (200/200), 296.52 KiB | 110.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Checking connectivity... done.
('temp-linecount-repo' will be deleted automatically)


     171 text files.
     166 unique files.                                          
      17 files ignored.

http://cloc.sourceforge.net v 1.62  T=1.13 s (134.1 files/s, 9764.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Perl                           149           2795           1425           6382
JSON                             1              0              0            270
YAML                             2              0              0            198
-------------------------------------------------------------------------------
SUM:                           152           2795           1425           6850
-------------------------------------------------------------------------------
Comment

PREVIOUS NEXT
Code Example
Shell :: how to update git password in windows 
Shell :: touch linux 
Shell :: Git in Bash 
Shell :: check my current branch git 
Shell :: gitignore specific file 
Shell :: le wagon setup 
Shell :: mv command in linux 
Shell :: mac force quit shortcut 
Shell :: htop ubuntu installation command 
Shell :: how to remove apt repository ubuntu 
Shell :: steps to assign mfa using aws cli 
Shell :: permissions in linux 
Shell :: jq filter by key 
Shell :: git cherry-pick 
Shell :: how to change git commit date 
Shell :: permission to var/cache 
Shell :: ubuntu battery and network utilities install 
Shell :: mac Os dark icons for ubuntu 20.04 
Shell :: Install Deno - Shell (Mac, Linux) 
Shell :: Linux Find word and replace text 
Shell :: count symlink dir bash 
Shell :: git add cloud repo 
Shell :: linux convert to sha512 
Shell :: how to install nipe 
Shell :: kubctl listnamespaces 
Shell :: installing flow globally 
Shell :: linux less go to last line 
Shell :: vsftpd create user for mac 
Shell :: uses tasklist to gett pid in batch file 
Shell :: install fly on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =