diff --git a/Docs/1_General/1.3_GitWorkflow.md b/Docs/1_General/1.3_GitWorkflow.md index 5f5e28a..e29f5d0 100644 --- a/Docs/1_General/1.3_GitWorkflow.md +++ b/Docs/1_General/1.3_GitWorkflow.md @@ -5,21 +5,21 @@ 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: -`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. 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