- main (branch) is always current;
- develop branch is always the "root" of new activity.
- FEATURE: ft. , eg.
ft.kitchen-sink-option
- HOTFIX: hf. , eg.
hf.teflon-tape
- RELEASE: rl. , eg.
rl.1.2.3
git checkout -b ft.kitchen-sink-option develop
git checkout ft.kitchen-sink-option
# WORK WORK WORK...
git commit --gpg-sign -m 'Add stuffs'
# WORK WORK WORK...
git commit --gpg-sign -m 'Add more stuffs'
# WORK WORK WORK...
git checkout ft.kitchen-sink-option
git rebase --interactive develop
# PICK first, SQUASH rest (generally)
git checkout develop
git merge --gpg-sign --no-ff ft.kitchen-sink-option
git push origin develop:develop
git push gitlab develop:develop
git push github develop:develop
# etc...
git branch -d ft.kitchen-sink-option
git checkout -b hf.teflon-tape main
- TODO: Will this allow us to hotfix previous versions?
git checkout hf.teflon-tape
# WORK WORK WORK...
git commit --gpg-sign -m 'Add stuffs'
# WORK WORK WORK...
git commit --gpg-sign -m 'Add more stuffs'
# WORK WORK WORK...
git checkout hf.teflon-tape
# UPDATE Documentation for new hotfix etc
git add README.md
git commit --gpg-sign -m 'Hotfix: 1.0.1'
git tag -s -m 'HOTFIX: 1.0.1' 1.0.1
git checkout develop
git merge --gpg-sign hf.teflon-tape
git push --tags origin develop:develop
git push --tags gitlab develop:develop
git push --tags github develop:develop
# etc...
git branch -d hf.teflon-tape
git checkout main
git merge --ff-only 1.0.1
git checkout -b rl.1.2.3 develop
# UPDATE Documentation for new version etc
git add README.md
git commit --gpg-sign -m 'Release: 1.2.3'
git tag -s -m 'RELEASE: 1.2.3' 1.2.3
git checkout develop
git merge --gpg-sign rl.1.2.3
git push --tags origin develop:develop
git push --tags gitlab develop:develop
git push --tags github develop:develop
# etc...
git branch -d rl.1.2.3
git checkout main
git merge --ff-only 1.2.3
git push origin master:master
make distclean
make ratslap-1.2.3.tar.gz.asc
rename tar tar.x86_64 ratslap*tar.gz*
git push github master:master
Edit releases page:
- https://github.com/krayon/ratslap/releases/edit/1.2.3
- Upload
tar.gz
andtar.gz.asc
git push gitlab master:master
Edit releases page:
- https://gitlab.com/krayon/ratslap/-/tags/1.2.3/release/edit
- Attach
tar.gz
andtar.gz.asc