#pre{{
git status
git remote -v
git log --oneline -n 5
}}
#pre{{
# Linux / macOS
rm -rf .git
# Windows PowerShell
Remove-Item -Recurse -Force .git
}}
#pre{{
git status
}}
#pre{{
git init
}}
#pre{{
# secrets / local config
site/config.local.php
site/config.*.local.php
.env
# runtime / generated
uploads/
cache/
tmp/
logs/
# generated images
img/cache/
img/thumbs/
# editor / OS
.DS_Store
Thumbs.db
.vscode/
.idea/
# submodule / vendor(使わないなら除外)
scc/
vendor/
# misc
*.log
}}
#pre{{
git add .
git status
git commit -m "initial commit (new major version)"
}}
#pre{{
git remote add origin https://github.com/USER/NEW_REPO.git
git branch -M main
git push -u origin main
}}
#pre{{
git tag v3.0.0
git push origin v3.0.0
}}
#pre{{
git add .
git commit -m "変更内容"
git push
}}