How to use this code in Eclipse
- Make sure you have Wpilib installed in Eclipse
- Go to File > Import...
- Open the Git folder and click Projects from Git
- Click Clone URI and click Next
- In the URI blank type this link: https://github.com/RoboEagles4828/Landroval.git
- The other information should have been filled out. In the Authentication spaces, type in your Github username and password
- Click Next and choose which branches to clone. Usually you will clone all of the branches
- Choose the directory to clone the project, and click Next
- The dialog box will now ask for an importing wizard. For your purposes, leave the options as is and click Next
- You will now be able to choose a project. The project should already be selected, so click Finish to finish
And there you go! You now have working code that you can change as you wish.
Creating branches in eclipse to edit on
When editing code at home, make sure to create a new branch so that the master code is not fatally changed. Your branch should branch off of the develop branch.
- Go to Github and click on the Branch dropdown in the top left
- Click the develop branch. You are now in the develop branch.
- Click the branch dropdown again. Type in the name of the branch you want to make and click enter. Usually the name is whatever feature you are implementing.
- The branch has now been created. Before you can use it, you must pull the repository again by right clicking the project and going to Team > Pull
- Right click your project and go to Team > Switch To > Other...
- Open the Remote Tracking folder and click on the branch you just made.
- Click Checkout as New Local Branch and then click Exit.
Now you can edit to your heart's content!
Pull Requests (putting your code into develop)
I'll do this later...