Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Docs/1_General/1.3_GitWorkflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <branch name>`
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 "<branch name>"`
`git checkout -b "<branch name>"`

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 <branch name>`.
Replace `<branch name>` 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
Expand Down