Skip to content

Importing an Already Existing Repository WIP

Matt edited this page Jan 10, 2018 · 5 revisions

Open Eclipse

Window -> Perspective -> Open Perspective -> Other -> Git -> Open

Select Clone a Git Repository

Copy the link from the repository on GitHub

Paste the link and click Next

Click Finish

Expand Repository -> Expand Working Tree -> right-click folder -> import projects

Hit Finish.

Window -> Show View -> Package Explorer

The red X's are due to the external libraries not being included in the build path

Linking these libraries will remedy that

Select the libraries tab.

The 'Add External Libraries" button will open up a file explorer. Here are the libraries and their locations you will need to link.

Library Filepath
CRTE_Phoenix.jar C:\Users\...\wpilib\user\java\lib
cscore.jar C:\Users\...\wpilib\java\current\lib
ntcore.jar C:\Users\...\wpilib\java\current\lib
opencv.jar C:\Users\...\wpilib\java\current\lib
WPILib.jar C:\Users\...\wpilib\java\current\lib
wpiutil.jar C:\Users\...\wpilib\java\current\lib

It is a good idea to also link the source code as well in order to be able to explore the libraries.

Expand the library -> attach source -> edit

Select external location -> external file -> select libraryName-sources.jar -> click ok


Finished writing an important bit of code?

Save your work -> go to the Git Staging

Unstaged Changes lists all the files that have been edited in your version of the code.

The green '+' icon will add selected files over to the Staged Changes tab.

Add a short commit message and fill in the author and committer fields.

Once you hit 'commit and push', it will prompt you for your GitHub ID / email address and password.

When it's finished pushing this window will pop up to let you know it was successful


Need to grab the most recent changes?


Clone this wiki locally