1 第一步首先在uoft的rstudio的terminal裏初始化git 需保留雙引號 bash example git config --global user.email "ruilin.peng@mail.utoronto.ca" git config --global user.name "Ruilin" 2 File > New Project > Version Control > Git 順便說下已生成的repository的url: https://github.com/RuilinP/STA304 3 在commit/push之前需要先pull(簡單來說就是別人之前做的改動) 兩種方法: 一:Git > commit > 然後點擊右上角的pull 二:在terminal裏輸入 bash example git pull 4 在完成了一些工作後要上傳需要git commit + push 兩種方法: 一:Git > 選中所有要上傳的文件 > commit > 加入批註 > 右上角push 二:在terminal裏輸入 bash example git add --all git commmit -m "<信息>" git push 然後輸入github的用戶認證完成push操作