Hello Everyone!
Welcome to FRC 2014 with Fairview High School!
This will be our working repository for the season.
An AWESOME (free) tutorial for git can be found here! Learn it!
- The master branch is protected! This means you should not commit to master. (See Procedure #2 on how to get your code approved into master.) The reason for this is so that we can keep the master branch in a working state at all times.
- Work on the development branch or feature branch. Try to follow the rules outlined here.
- Check out the repo with
git clone https://github.com/fairviewrobotics/2014_Robot_Code.git
- Starting a new feature branch
- run the command
git checkout -b myfeature develop
- This makes a new branch off the develop branch, here you can work on your new feature without fear of merge conflicts! (ewww)
- run the command
- Finishing a feature branch (merging it into develop)
git checkout develop
git merge --no-ff myfeature
- OPTIONAL
git branch -d myfeature
git push origin develop
- Getting Code Approved To Master Branch
- In the right bar of the repo, click the "Pull Requests" button. (Looks like three points and an arrow)
- Click the "New Pull Request" button.
- In the "base" section, select the master branch (you want to merge your branch into master).
- In the "compare" section select the branch you want to have merged into master.
- Click the text box to create a pull request.
- Under "Title" type an short description of what your code changes
- Under "Description" add a comment describing
- Select "Send Pull Request"
DO NOT merge your branch into master on your computer, it makes the master branch unsafe and should be avoided.