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 08:31] – [voyc git Workflow] jhagstrand | projects:projects [2026/06/12 21:14] (current) – [Deploy] jhagstrand | ||
|---|---|---|---|
| Line 70: | Line 70: | ||
| =====Developer Guidelines===== | =====Developer Guidelines===== | ||
| + | |||
| + | ==== Tab Indents ==== | ||
| + | |||
| + | Always use the tab character to indent. | ||
| ====.gitignore==== | ====.gitignore==== | ||
| Line 78: | Line 82: | ||
| css.min | css.min | ||
| index.php | index.php | ||
| + | RELEASES.md | ||
| ==== Duplicate Content ==== | ==== Duplicate Content ==== | ||
| Line 184: | Line 188: | ||
| Trends in release management as of 2026. | Trends in release management as of 2026. | ||
| - | * 50/72 rule. A commit message has three lines (title, blank, body). | + | * 50/72 rule. A commit message has three lines (title, blank, body). |
| - | * Conventional Commits. | + | * Conventional Commits. |
| - | * Semantic Versioning. | + | * Semantic Versioning. |
| - | + | {{https:// | |
| - | [[https:// | + | |
| [[https:// | [[https:// | ||
| + | [[https:// | ||
| + | At voyc we use these above trends in commit messages and tag messages. | ||
| + | At deployment, a file named RELEASES.md is generated from the tag messages by a script. | ||
| - | Release history, | + | [[..:git | more about log and tag]] |
| - | the changelog.md or release history is generated. | + | |
| - | + | git tag -l --sort=-version: | |
| - | # All tags with their full messages, most recent first | + | |
| - | git tag -l --sort=-version: | + | git for-each-ref --sort=-version: |
| - | + | ||
| - | git for-each-ref --sort=-version: | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | + | ||
| - | For each commit: | + | |
| - | * use conventional commit categorization [[https:// | + | |
| - | + | ||
| - | For each release: | + | |
| - | * use semantic versioning | + | |
| - | * use the 50/72 rule: multiline tag message | + | |
| - | + | ||
| - | For commit and tag messages: | + | |
| - | * use the 50/72 rule: | + | |
| + | ==== Deploy ==== | ||
| + | # in laptop dev repo | ||
| + | | ||
| + | # git filter-repo --mailmap .mailmap --force | ||
| + | # lint | ||
| + | | ||
| + | git checkout master | ||
| + | git merge blend | ||
| + | git branch -d blend | ||
| + | | ||
| + | git tag v0.0.0 -m' | ||
| + | | ||
| + | git push origin master --force --tags | ||
| + | git push origin --delete blend | ||
| + | | ||
| + | # in production webserver | ||
| + | | ||
| + | git fetch origin | ||
| + | git reset --hard origin/ | ||
| + | | ||
| + | git push gitlab master --tags | ||
projects/projects.1781267500.txt.gz · Last modified: 2026/06/12 08:31 by jhagstrand