初始git地址并上传R包
- git init
- git add *
- git commit -m “first commit”
- git remote add origin https://github.com/【github用户名】/【repository名称】.git
- git push -u origin master
在同一git地址下修改R包
- git add *
- git commit -m “first commit”
- git push -u origin master
删除git远程地址
- git remote rm origin
查看git远程仓库地址信息
- git remote -v
补充:上传本地文件到git
- 输入命令 cd my_file,进入my_file文件夹
- git add . (注:此操作是把my_file文件夹下面的文件都添加进来)
- git commit -m “提交信息” (注:“提交信息”里面换成你需要,如“first commit”)
- git push -u origin master (注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码)