Follow the official [WPILib Installation Guide]](https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html) if you have not yet setup your machine for the WPI libraries.
- Install one of the following bash shells:
-
git bash Your Windows home directory will be in /c/users/. I know this works with our use case because it is what I've been using.
-
Windows Subsystem for Linux (wsl) Your Windows home directory will be in /mnt/c/users/. Eventually this will be the recommendation but I am being cautious because I have not yet used it with this toolchain so do not know if there are going to be issues to work out.
If you choose WSL, see Setting up Windows Subsystem For Linux for more instructions specific to our team.
-
No platform-specific setup needed.
No platform-specific setup needed.
- In Visual Code, install the following from the marketplace :
Perform the following steps in bash shell (e.g. git bash on windows or any terminal window on linux or macos):
-
Identify yourself
This is so the repository knows who made various changes. We should have this set in our private repositories.
Identify who you are so that git commits can be tagged and the changes are traceable back to the person who made them. Do not use shared accounts as a rule of thumb.
Warning: In public repositories there may be some privacy concerns exposing names and contact information, particularly of minors.
Our repositories should be private, but they could potentially become public and the identities in the history are hard (if not impossible) ot cleanse.
If you do not want to expose your identify then "" would be the identity that your registered as under github and leave your email out. However if you do this then other members of the team (including mentors) are not going to know who you are. We should have some private document that maps team members with their git id's so that we can know who is who and be able to trace back changes.
git config --global user.name "<your github id>"
or (see Warning above)
git config --global user.name "<your name>" git config --global user.email "<your email>"
Platform Command Windows git config --global core.autocrlf true
MacOs git config --global core.autocrlf input
Linux git config --global core.autocrlf input
-
Test your git configuration mkdir test cd test touch file git init git add . git commit -a -m "test" git log
Confirm the
Author
line is correct -
Remove the temporary repository from previouis step
cd .. rm -rf test
-
Setup Git credentials You might want to configure a credential store so you dont need to keep typing your password. Use one of:
Mechanism Command Forever git config --global credential.helper store
15 minutes git config --global credential.helper cache
N seconds git config --global credential.helper 'cache --timeout=N'
-
Test your credentials
git clone https://github.com/FRC-Team-1403/TemplateRobotRepository.git rm -rf TemplateRobotRepository
We wont need that repository. We just wanted to verify your credentials can access our private repositories.
See one of the Programming Team captains if you do not have access.