How to Contribute to the Website Code Repository
Github How to
REFERENCE
How to Fork a Repo
Git CheatSheet
================================================
SETTING UP THE GITHUB REPOSITORY
- Go to https://github.com/alexiswolfish/frc2590-website
- Click "Fork" in the top right.
- This creates your own unique instance of the repository
unique to you that stores all of your changes.
-----------------------------------------------
If you are using the Github for Windows Client.
- Click tools/options
- Set Default Storage Directory to somewhere you can save to
- Select "Git Bash" as the default shell Open Github for Windows and click on your face under the word "Github"
- Navigate to yourAccountName/frc2590-website
- Click clone repository, on the right.
-If this doesn't work, follow the Git Bash directions below.Go to local -> repostitories on the left and click the little arrow next to frc2590-website. Click the little gear -> open a shell here
-----------------------------------------------
If you are using Git Bash (or the terminal on macOSX)
- Open Git Bash (downloaded with git) + Navigate to the directory you would like to put the repository in
- type "ls" to see where you are, and "cd directoryName" to open a folder
- type
git clone https://github.com/yourUserName/frc2590-website.git
- this downloads all the files from your forked repository to your computer
- type
cd frc2590-website
if the above doesn't work, you installed Git on your C drive and can't get at it. Reinstall on H drive
------------------------------------------------
Errybody (also never include the quotes in a terminal command)
- If you are at school, type
git config http.sslVerify false
into the git bash.- make sure you are inside the frc2590-website dir by typing "ls"
- type
git remote add upstream https://github.com/alexiswolfish/frc2590-website.git
================================================
DAILY GIT
Before you start working
- If you made any uncommited changes, create a commit in the top left corner. Make sure to add a message, and then press "Sync"
- If you are a terminal diehard, type "git add folder/filename" for every file you have changed.
- or "git add -A"
- type "git commit -m "ur durr describing the changes I made briefly""
- include the quotes in that one after m
- type "git push origin master" - Pull Changes from me (Use the Git Bash Terminal)
- type "git pull upstream master"
- or "git fetch upstream master" if you know what you are doing
- if you get the "fatal unable to access SSL certificate error" on the school computers typegit config http.sslVerify false
- If it says you have a Merge Conflict
- follow the instructions to use KDiff to settle merge conflicts in the README on the git
- Alternatively, google a way that confuses you less
- or just open up the file and delete the conflicts in Notepad++ - DO step 1.) again.
- Open up your files on your local computer in Notepad++, or your text editor of choice, and hack away to your heart's content.
- When you are done, do step 1.) again.
- go to YOUR repository on github.com and press the little green pull request arrow, so everyone recieves your changes