For nice version controlling, you learning how to use this GitHub from RStudioCloud
| Step Number | Description |
|---|---|
| Step 1 | Make the file you want to add |
| Step 2 | Use the follwing command to add file - git add <file name> |
| Step 3 | Now use the committing - git commit -m "Say some $hit" |
| Step 4 | Now push it to master - git push origin master |
| Step 6 | It will now ask you for U/P |
Note whenever you have to make changes to your repository first you, you must add the file with a commit message, and then do step 4
Follow this link https://rmarkdown.rstudio.com/github_document_format.html What it does it lets you make a R studio file directly for git hub