Difference between revisions of "MORT U 2018"
Jump to navigation
Jump to search
Dsteinmark (talk | contribs) (→Day 1) |
Dsteinmark (talk | contribs) (→Day 1) |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | == Day 1 == | |
[https://mort11.com/downloads/face.jpg Face the Face] | [https://mort11.com/downloads/face.jpg Face the Face] | ||
| − | [https://mort11.com/downloads/mentor.wiki/Senior%20Welcome%20to%20Programming.pptx Introduction Presentation] | + | [https://mort11.com/downloads/mentor.wiki/Programming/Senior%20Welcome%20to%20Programming.pptx '''Introduction Presentation'''] |
| + | |||
| + | [https://mort11.com/mentor.wiki/index.php/Git_Basics#Git_Vocabulary '''Git Vocabulary'''] on the [[Git Basics]] page ([https://mort11.com/downloads/mentor.wiki/Vocab%20Git.docx Original Git Vocabulary doc]) | ||
| + | |||
| + | '''Installs for:''' | ||
| + | * [[Installing and Using IntelliJ IDEA | IntelliJ (Integrated Development Environment (IDE))]] | ||
| + | * [https://www.oracle.com/technetwork/es/java/javase/downloads/jdk8-downloads-2133151.html?printOnly=1 Get JDK 8] | ||
| + | * [https://java.com/en/download/ Get Java] | ||
| + | * [https://git-scm.com/downloads Git] (Source Control) | ||
| + | * [https://tortoisegit.org/ Tortoise Git] (GUI for Source Control) | ||
| + | |||
| + | * Though not included in original talk, probably need [https://plugins.jetbrains.com/plugin/9405-frc WPILib/FRC Plug-in for IntelliJ]. | ||
| + | |||
| + | Added later: | ||
| + | * [https://firstfrc.blob.core.windows.net/frc2019/Radio/FRC_Radio_Configuration_19_1_0.zip FRC Radio Configuration tool (Windows only zip file)] Some [https://wpilib.screenstepslive.com/s/currentCS/m/getting_started/l/144986-programming-your-radio directions] that explain how to use the tool. | ||
| + | |||
| + | '''10 Minute Cycle Rule:''' | ||
| + | * You get 10 minutes with the robot, then need to relinquish it to other students | ||
| + | |||
| + | == Day 2 == | ||
| + | '''Setup and try Git using TortoiseGit.''' First need to generate a private key for use with the repositories. | ||
| + | |||
| + | Installs: | ||
| + | * [https://about.gitlab.com/ gitlab] A web-based Git-repository manager providing wiki, issue-tracking, and continuous integration features. | ||
| + | * [http://www.puttygen.com/ puttygen] A public/private key generator | ||
| + | |||
| + | Setup: | ||
| + | # [https://www.ssh.com/ssh/putty/windows/puttygen#sec-Running-PuTTYgen Run puttygen] to create a private key for use in Git | ||
| + | # In puttygen, Generate public/private key and save to C:\users\user\.ssh\tortoisekeys | ||
| + | # open gitlab -> Profile pic -> Settings -> Side ssh keys -> title key -> paste key | ||
| + | # Right Click -> Tortoise git -> Settings -> Git credentials -> Username -> use first and last name | ||
| + | # Make a new folder | ||
| + | # Make a new repository (private) | ||
| + | # Copy ssh URL | ||
| + | # Git create repo here | ||
| + | # Git sync -> manage -> paste URL | ||
| + | # Create blank text file | ||
| + | # Git -> ssh -> putty key -> link key | ||
| + | # Commit -> message "initial commit" | ||
| + | # Check mask file | ||
| + | # Commit | ||
| + | # Check repository - nothing there? | ||
| + | # We need to push! Commits are only local save states | ||
| + | # Click elipses on local branch, Click master | ||
| + | # Push -> yes | ||
| + | # Add stuff and change things to the file | ||
| + | # Do two commits, then push | ||
| + | # Delete local file | ||
| + | # Copy ssh URL from gitlab | ||
| + | # Paste URL | ||
| + | # Load putty key -> click key | ||
| + | # Do one more commit and change, and then push | ||
| + | # Oops made a mistake | ||
| + | # Show Log -> Right click -> commit -> Reset master to this | ||
| + | |||
| + | == Day 3 == | ||
| + | |||
| + | [https://github.com/bmirisola/Mort_u_project Benny's github MORT U Project] | ||
| + | |||
| + | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[[Category:Programming]] | [[Category:Programming]] | ||
Latest revision as of 21:01, 6 January 2020
Day 1
Git Vocabulary on the Git Basics page (Original Git Vocabulary doc)
Installs for:
- IntelliJ (Integrated Development Environment (IDE))
- Get JDK 8
- Get Java
- Git (Source Control)
- Tortoise Git (GUI for Source Control)
- Though not included in original talk, probably need WPILib/FRC Plug-in for IntelliJ.
Added later:
- FRC Radio Configuration tool (Windows only zip file) Some directions that explain how to use the tool.
10 Minute Cycle Rule:
- You get 10 minutes with the robot, then need to relinquish it to other students
Day 2
Setup and try Git using TortoiseGit. First need to generate a private key for use with the repositories.
Installs:
- gitlab A web-based Git-repository manager providing wiki, issue-tracking, and continuous integration features.
- puttygen A public/private key generator
Setup:
- Run puttygen to create a private key for use in Git
- In puttygen, Generate public/private key and save to C:\users\user\.ssh\tortoisekeys
- open gitlab -> Profile pic -> Settings -> Side ssh keys -> title key -> paste key
- Right Click -> Tortoise git -> Settings -> Git credentials -> Username -> use first and last name
- Make a new folder
- Make a new repository (private)
- Copy ssh URL
- Git create repo here
- Git sync -> manage -> paste URL
- Create blank text file
- Git -> ssh -> putty key -> link key
- Commit -> message "initial commit"
- Check mask file
- Commit
- Check repository - nothing there?
- We need to push! Commits are only local save states
- Click elipses on local branch, Click master
- Push -> yes
- Add stuff and change things to the file
- Do two commits, then push
- Delete local file
- Copy ssh URL from gitlab
- Paste URL
- Load putty key -> click key
- Do one more commit and change, and then push
- Oops made a mistake
- Show Log -> Right click -> commit -> Reset master to this