projects:projects
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:projects [2026/06/12 21:14] – [Deploy] jhagstrand | projects:projects [2026/06/16 03:27] (current) – [End Branch] jhagstrand | ||
|---|---|---|---|
| Line 207: | Line 207: | ||
| git for-each-ref --sort=-version: | git for-each-ref --sort=-version: | ||
| - | ==== Deploy | + | |
| + | Practices: | ||
| + | * Commits made only in feature branch. | ||
| + | * We let aider auto-commit every change. | ||
| + | * At merge, we generally keep the detailed commits, but squash is optional. | ||
| + | * The commit log is for developers. | ||
| + | * At release, we create a tag, observing SemVer, with hand-written message. | ||
| + | * Public release history is generated from the tag messages. | ||
| + | * Conventional commits types are used only on the commit messages, not the tag messages. | ||
| + | |||
| + | |||
| + | ==== One-time Fix Privacy in Log ==== | ||
| # in laptop dev repo | # in laptop dev repo | ||
| - | + | | |
| - | | + | git filter-repo --mailmap .mailmap --force |
| - | # lint | + | |
| | | ||
| git checkout master | git checkout master | ||
| - | git merge blend | + | git merge fixlog |
| - | git branch -d blend | + | git branch -d fixlog |
| | | ||
| - | git tag v0.0.0 | + | git push origin master |
| + | git push gitlab master --force --tags | ||
| + | |||
| + | ==== Start Branch ==== | ||
| + | git branch peaceful | ||
| + | |||
| + | ==== Save Work ==== | ||
| + | # save work | ||
| + | git checkout peaceful | ||
| + | git push origin peaceful | ||
| | | ||
| - | | + | ==== End Branch ==== |
| - | git push origin --delete | + | |
| + | git merge --squash peaceful | ||
| + | git commit | ||
| + | git branch -D peaceful | ||
| + | git push origin master | ||
| + | git push origin --delete | ||
| + | |||
| + | ==== Deploy ==== | ||
| + | |||
| + | git tag v0.2.0 -m' | ||
| | | ||
| - | | + | |
| + | git push gitlab master --tags | ||
| | | ||
| + | # in production webserver | ||
| git fetch origin | git fetch origin | ||
| git reset --hard origin/ | git reset --hard origin/ | ||
projects/projects.1781313285.txt.gz · Last modified: 2026/06/12 21:14 by jhagstrand