Portable Git/GitHub safety starter kit.
A minimal, reusable baseline to safely start new repositories.
It helps prevent:
- committing secrets
- bad
.gitignoredefaults - messy repo structure
- unsafe first commits
- missing pre-commit checks
Designed for:
- Windows + VS Code
- Python or mixed repos
- solo engineers
- low-friction DevSecOps
Before writing code, you install safety rails.
This repo gives you those rails.
Take only what you need:
.gitignore.gitattributes.env.example.pre-commit-config.yamlscripts/Setup/scripts/Audit/
Keep it lean.
.
├── README.md
├── .gitignore
├── .gitattributes
├── .env.example
├── .pre-commit-config.yaml
├── scripts/
│ ├── Setup/
│ └── Audit/
mkdir My_New_Project
cd My_New_Project
git initCopy from this repo into your new project.
python -m venv .venv
.venv\Scripts\Activate.ps1pip install pre-commit
pre-commit installcopy .env.example .envNever commit .env.
Ensure it excludes:
.env.venv/- logs
- cache
- OS junk
- editor state
git add .
git commit -m "Initial safe baseline"If hooks modify files, re-add and commit again.
- No
.envcommitted - No API keys in code
- Pre-commit installed
- README present
- Repo structure clean
- No large unintended files
Recommended:
main→ clean public branch (GitHub)YourLocal→ your local working branch
git remote add origin https://github.com/<UserName>/<RepopsitoryName>.git
git push -u origin master:maingit branch -m YourLocal
git branch --set-upstream-to=origin/main YourLocalgit push
git pull- simple > complex
- local control > hidden automation
- prevent mistakes early
- make safety the default
- repo generator script
- language-specific templates
- GitHub Actions checks
- improved secret scanning
Built from real-world mistakes and recovery patterns.