https://github.com/modem7/defaultrepo
Content to add by default to new repos
https://github.com/modem7/defaultrepo
default files repo
Last synced: about 1 month ago
JSON representation
Content to add by default to new repos
- Host: GitHub
- URL: https://github.com/modem7/defaultrepo
- Owner: modem7
- License: mit
- Created: 2022-08-05T18:20:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-08-09T00:09:21.000Z (7 months ago)
- Last Synced: 2025-08-09T02:28:43.105Z (7 months ago)
- Topics: default, files, repo
- Homepage: https://modem7.com
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Things to update in new repo:
```
.wakatime-project
.github/settings.yml
.github/dependabot.yml
README.md
```
---
# Github documentation regarding .gitattributes
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#per-repository-settings
---
# Template repos for gitattributes
https://github.com/alexkaratarakis/gitattributes
---
# CI to check gitattribute files in a repo:
```
missing_attributes=$(git ls-files | git check-attr -a --stdin | grep "text eol=lf")
if [[ "$missing_attributes" ]]; then
echo ".gitattributes rule missing for the following files:";
echo "$missing_attributes";
else
echo "All files have a corresponding rule in .gitattributes";
fi
```
---
# Renormalize files in a repo:
```
git add . -u
git commit -m "Saving files before refreshing line endings"
git add --renormalize .
git status
git commit -m "Normalize all the line endings"
```