Skip to content

Instantly share code, notes, and snippets.

View DanielRomeo's full-sized avatar
🍉

Daniel DanielRomeo

🍉
View GitHub Profile
@mandiwise
mandiwise / Count lines in Git repo
Last active April 1, 2025 02:43
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>