you should have the following ready: 1. The material you’d like to submit for your assignment 2. teh internets 3. an open terminal shell (e.g. you can use the one in rstudio)
In the upper right corner select the ‘Fork’.
This will copy the repository to your github account so you can work with it directly without affecting the classes repository yet. Once the forking process is done, you might find it might be helpful to keep two windows open: the original repository and another tab in your browser for your new copy.
git config –global user.name “ReallyAwesomeName”
git config –global user.emal “radEmailAddy123@bestdomain.com”
mkdir DATA607_Tidyverse
cd DATA607_Tidyverse
Now we need to copy the SSH key for the cloned github repository. Attention Make sure this is the key for the new copy in your repository. Things won’t work if you go to the class repository & copy that key since we don’t have permission.
git clone git@github.com:urgithubusername/SPRING2020TIDYVERSE.git cd SPRING2020TIDYVERSE
ls
you should see the contents of the github branch as output (all the other student’s uploaded projects)
git status
You should see the files you added indicated in green the output.
git add myExcellentWork.Rmd suchACoolScript.r bestData.csv
git commit -m ‘added my contribution’
git remote add origin git@github.com:SmilodonCub/SPRING2020TIDYVERSE.git
git push origin master
From your github account, select ‘New pull request’:
From there, you should see something resembling this screen:
Select ‘Create pull request’ then enter any comment detail you wish before hitting ’Create pull request once again. For example:
Now all you have to do is wait for the instructor to accept the proposed additions/changes.
I hope this was helpful!