From e49027b5ae9ced6b4f9874faa7c2ca9c91269352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bruno=20Bote?= Date: Thu, 7 Aug 2025 19:44:24 +0200 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index c2bec0368b..665da6e01d 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,26 @@ go build -o notely && ./notely *This starts the server in non-database mode.* It will serve a simple webpage at `http://localhost:8080`. You do *not* need to set up a database or any interactivity on the webpage yet. Instructions for that will come later in the course! + +Felbote's version of Boot.dev's Notely app. + +A branch is (basically) a copy of your codebase. However, it's a special kind of copy that makes merging new code changes from one branch to another simple and easy. + +So far, you may have been only working on the main branch, but you can create as many branches as you want, and they're a great way to keep changes that are unrelated to each other isolated and contained. + +In many teams, the main branch reflects the state of the codebase that's running in production. This means that the main branch should always be stable and ready to deploy. If you want to: + +Add a new feature +Fix a bug +Refactor some code +Then you should create a new branch to add those changes to. This allows you to work on those changes independently without affecting the main branch. + +Assignment +Check which branch you're currently on with git branch. You'll see a list of branches, with an asterisk next to the branch you're currently on: +* main + +Create a new branch called addtests. I like to name my branches after the change I'm about to make, and in this case, we're about to add tests. +git switch -c addtests + +When you create a new branch, it only exists locally. Push this new branch up to GitHub: +git push origin addtests