Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
| ... | ... |
@@ -32,8 +32,21 @@ git fetch origin |
| 32 | 32 |
git branch -D release || true |
| 33 | 33 |
git checkout --track origin/release |
| 34 | 34 |
git checkout -b bump_$VERSION |
| 35 |
+``` |
|
| 36 |
+ |
|
| 37 |
+If it's a regular release, we usually merge master |
|
| 38 |
+```bash |
|
| 35 | 39 |
git merge origin/master |
| 36 | 40 |
``` |
| 41 |
+Otherwise, if it is a hotfix release, we cherry-pick only the commits we want |
|
| 42 |
+```bash |
|
| 43 |
+#get the commits ids we want to cherry-pick |
|
| 44 |
+git log |
|
| 45 |
+#cherry-pick the commits starting from the oldest one, without including merge commits |
|
| 46 |
+git cherry-pick <commit-id> |
|
| 47 |
+git cherry-pick <commit-id> |
|
| 48 |
+... |
|
| 49 |
+``` |
|
| 37 | 50 |
|
| 38 | 51 |
### 2. Update CHANGELOG.md |
| 39 | 52 |
|