| 34 | Example 2: |
| 35 | 1.Go to https://github.com/ |
| 36 | 2. Click the plus sign at the top left of the page |
| 37 | 3. Click new repository |
| 38 | 4. Name the Repository HelloWorld |
| 39 | 5. Ignore the Description |
| 40 | 6. Leave it on the public button |
| 41 | 7. Check initialize README.md |
| 42 | 8. Click Create repository |
| 43 | 9. Click on the README.MD file and click the pencil icon to edit. |
| 44 | 10. in the next line, type #hello world |
| 45 | 11. Scroll down to "Commit Changes", type in "added hello" and press Commit changes |
| 46 | 12. Click the clone or download green button and copy the URL |
| 47 | 13. Open up FRC VS Code |
| 48 | 14. In Vs Code, Press: Ctrl + Shift + P (A search bar will pop up) |
| 49 | 15. Type in "Git: clone" and click once it emerges |
| 50 | 16. Paste the URL from the github website and press enter |
| 51 | 17. A tab will appear at the bottom right of the screen. Press "Open Repository" |
| 52 | 18. add a new file named "hello.java" by right-clicking under the README.md on the left |
| 53 | 19. Type in |
| 54 | public class hello{ |
| 55 | public static void main(String args[]) { |
| 56 | System.out.println("Hello World"); |
| 57 | } |
| 58 | } |
| 59 | 20. Run it to check. |
| 60 | 21. Press: Ctrl + Shift + P (A search bar will pop up) |
| 61 | 22. Type in "Git: Commit" |
| 62 | 23. Two windows will pop up; say Yes to both. |
| 63 | 24. Type in "added hello.java" and press ENTER |
| 64 | 25. Press: Ctrl + Shift + P and type in Git: push. |
| 65 | 25. Check on github to see your changes. |
| 66 | |