There’s no user-friendly way to do this. You have to use git in the command line.
See our quickstart instructions here.
git clone <url_of_your_repository>(get the url from your GitHub/GitLab repository page)
Note: We suggest you use SSH for the URL to avoid having to repeatedly enter your log-in credentials. If you’re not sure if you’ve set up SSH authentication, see these GitHub instructions.
cd <name_of_your_repository>to navigate into your repository
git pull origin masterto get current version of repo from GitHub/GitLab
git statusto check the status of your repository. You should see that your file(s) is now listed as modified under the section “Changes not staged for commit”.
git add <filename>
git commit -m "your_commit_message_here"
git pull origin master
git push origin master
If you’re confused about the differences between git, GitHub, GitLab, check out our FAQ here.
If you’re an RStudio user and would like to work with git, check out our FAQ here.