Repository navigation
Project Workflow
Aaron Van De Brook edited this page Sep 11, 2020
·
9 revisions
The master branch will rarely be directly committed to. Generally we should use branches to work on each story card/issue. Once the necessary changes have been made, create a Pull Request so the changes can be reviewed, fixed, and/or merged.
- Update your local branch and create a new one for the story card you are working on:
$ git pull && git checkout -b <branch-name>-
Make and stage your changes (stage often to prevent data loss, commit when your code is working)
-
Here's a nice shortcut for staging files:
$ git add .- And here is the general commit form:
$ git commit -m "<commit-message>"- When you want to publish your branch so other people can see it, use the following form:
$ git push -u origin <branch-name>- Then you can create a pull request on GitHub to have your changes reviewed and merged into the master branch