Installation
What is Git & GitHub
Use Git locally
RStudio -> File -> New Project -> New Directory -> New Project ->Create a git repository
For the first time of using git, run (in terminal):
git config --global user.name "Your Name"
git config --global user.email "Your_email@xjtlu.edu.cn"
- roll back to a previous version
git reset --hard HEAD~1