-
Notifications
You must be signed in to change notification settings - Fork 0
Git Workflow
Here you'll find instructions on the basic Git workflow we should follow.
Every time you want to make a new feature, create a local branch off of the develop
branch to start working on it!
git checkout -b <my-cool-feature> develop
Running the above command will create a new branch off of develop
and automatically switch you to that working branch.
You can now commit all of your changes for your specific feature like normal!
git add ChangedFile.java
git commit -m "Implemented the cool feature"
The above commands will add commits to your local branch.
Pull Requests are ways that we can do code reviews directly on GitHub!
Once you have completed your feature, go ahead and push your branch to the repository:
git push origin develop <my-cool-branch>
After your branch is pushed to the remote repository, go find it in the branch
dropdown and click New Pull Request
. You can then assign the Pull Request to someone for review! Once it has been approved, GitHub will allow you to merge that branch.