From 331c06c0a7476d683818faa121b60345d1e59bed Mon Sep 17 00:00:00 2001 From: spellingcat <70864274+spellingcat@users.noreply.github.com> Date: Sat, 6 Sep 2025 00:24:07 -0700 Subject: [PATCH 1/2] fix make new branch command --- Docs/1_General/1.3_GitWorkflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/1_General/1.3_GitWorkflow.md b/Docs/1_General/1.3_GitWorkflow.md index 5f5e28a..2d349b1 100644 --- a/Docs/1_General/1.3_GitWorkflow.md +++ b/Docs/1_General/1.3_GitWorkflow.md @@ -9,7 +9,7 @@ A "clean" commit history is made up of large, well named commits to make it easy Because I am on my own branch, another student can also work on their own article without fear of interfering with my work. To create a branch run: -`git branch -m ""` +`git checkout -b ""` Then, this new branch works just like the main branch with `pull`, `add`, `commit`, and `push` commands. You should see your current branch in blue in the command prompt if you are using git bash. From edbed138d19ce89ebb8affc1af4af6e6b94644ed Mon Sep 17 00:00:00 2001 From: spellingcat <70864274+spellingcat@users.noreply.github.com> Date: Sat, 6 Sep 2025 00:27:32 -0700 Subject: [PATCH 2/2] i need to turn on branch protection --- Docs/1_General/1.3_GitWorkflow.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Docs/1_General/1.3_GitWorkflow.md b/Docs/1_General/1.3_GitWorkflow.md index 2d349b1..e29f5d0 100644 --- a/Docs/1_General/1.3_GitWorkflow.md +++ b/Docs/1_General/1.3_GitWorkflow.md @@ -5,7 +5,7 @@ Branches are a deviation or split from the main branch that can be adding or removing a specific feature For example, I can open a branch to work on a new doc page for this training repo. Since I am on my own branch, I am not interfering with the main branch's commit history, which is supposed to be kept clean. -A "clean" commit history is made up of large, well named commits to make it easy to quickly skim recent changes.git push --set-upstream origin ` +A "clean" commit history is made up of large, well named commits to make it easy to quickly skim recent changes. Because I am on my own branch, another student can also work on their own article without fear of interfering with my work. To create a branch run: @@ -16,10 +16,10 @@ You should see your current branch in blue in the command prompt if you are usin Otherwise you can use `git status` to check your branch. Right now, this branch is only local to your computer. -To upload this branch to the remote repository so others can view it: -` - -Once you have pushed the branch for the first time, it should show up on GitHub and be accessible by others. +To upload (push) this branch to the remote repository so others can view it, run `git push`. +The first time you push a branch, git will prompt you to instead run `git push --set-upstream origin `. +Replace `` with the name of your branch. +Now, it should show up on GitHub and be accessible by others. Use `git push` without the rest to push any further commits. ## Pull Requests