Skip to content

Commit

Permalink
Simplify process for multiple changes
Browse files Browse the repository at this point in the history
When doing multiple changes, the previous process involved stacked
branches. This was unnecessary and it is easier to understand by
recommending they switch back to the main branch before they create
their new feature branch.
  • Loading branch information
mikelorant committed Mar 20, 2024
1 parent 93d515d commit b5e76ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions pages/do-the-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ preload: false
layout: two-cols
---

> What if I have other changes?
> What if I have another change?
<v-click>

Create another feature branch.
Create another feature branch from the `main` branch.

```shell
git switch main
git switch -c feature2
git add -p
git commit
Expand All @@ -84,6 +85,7 @@ gitGraph
commit
branch feature1
commit
checkout main
branch feature2
commit
```
Expand Down
4 changes: 2 additions & 2 deletions public/videos/do-the-change-feature2.webm
Git LFS file not shown
6 changes: 4 additions & 2 deletions scripts/video/tapes/do-the-change-feature2.tape
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Ctrl+L

Show Sleep 1

Type "git switch main" Enter Sleep 1

Source tapes/sources/git-commit-feature2.tape

Ctrl+L Sleep 0.25
Expand All @@ -18,7 +20,7 @@ Type "git show -p" Sleep 1 Enter Sleep 3

Ctrl+L Sleep 0.25

Type "git branch" Sleep 1 Enter Sleep 3
Type "git log --oneline -2" Sleep 1 Enter Sleep 3
Type "git branch" Sleep 1 Enter Sleep 3
Type "git log main.." Sleep 1 Enter Sleep 3

Source tapes/sources/terminate.tape

0 comments on commit b5e76ff

Please sign in to comment.