--- title: git --- ## Local Git Exclude Edit the local exclude file in your git repo without having to edit the global ```.gitignore``` ```.git/info/exclude``` Source: [StackOverflow](https://stackoverflow.com/questions/1753070/how-do-i-configure-git-to-ignore-some-files-locally) ## Counting files in a git repo ``` git ls-files | wc -l ``` Source: [Stackoverflow](https://stackoverflow.com/questions/9468970/how-to-get-a-count-of-all-the-files-in-a-git-repository)