This is a generalized Git Workflow to help gain the skills to collaborate on open source projects.
- Follow the instructions below
- Create your changes either in the GitHub or locally
- Submit changes in a PR to the original repo
Questions or thoughts? Connect with us on Discord.
For an overview of terminal commands check out this video our club member Beck created.
-
Fork this repository
Done from NSC GitHub Repository (click link below)
https://github.com/NSC-Computer-Science-Club/ForkPracticeCareerPrep
-
The repo will appear under your profile. Click this repository (We will do our work from here)
For a Deeper dive Using Git Bash command line. Follow Steps A thru G Under Terminal Commands below
-
At the top of the file will be a textbox to name your file. Include the subfolder. Typing the name of the subfolder and then a forward-slash will indicate a new folder. Then type readme.md
-
Then add markdown of your choosing to illustrate what you learned. Here is a GitHub reference to help with markdown.
-
Once you are satisfied with your changes. Save your file by scrolling down and clicking the green "Commit new file" button.
Switch to the Git Bash terminal
On your computer navigate to the folder where you want to store your copy within the Git Bash terminal.
Cloning will create a subfolder including all the files within the repository.
A. Clone this repository git clone https://github.com/NSC-Computer-Science-Club/ForkPracticeCareerPrep.git
Switch to your file management system
B. Create a subfolder within this copied repository. Name it your GitHub profile user name.
C. In this folder create a README.md file
D. Open this file and add your markdown and save the file.
Switch to the Git Bash terminal
E. Add your changes from the terminal git add .
F. Commit your changes git commit -m "My created subfolder with markdown file."
G. Push your changes to your GitHub Profile repository git push origin main
Continue with step 7 above
GitHub Markdown Reference Guide
Link to Beck’s Git Intro Video