上传:
git init
git add .
git commit -m 'test'
git remote add origin git@github.com:plantdean/VVCSoftware_VTM-9.3_Pure.git
git branch -M master
git push -u origin master
下载:
git pull origin master
1. 如果出现了remote origin already exists的错误,rm一下即可:
git remote rm origin
2. 如果有LF will be replaced by CRLF......:
仅对当前git仓库有效:
git config core.autocrlf false
全局有效:
git config --global core.autocrlf false
3. 如果出现git pull时出现Your local changes to the following files would be overwritten by merge...,如果不想保留本地的修改:
git reset --hard
参考:
Git教程——将本地库内容推送到GitHub远程库【ssh方式】 - 知乎
Git 如何将远程仓库的项目克隆到本地及如何推送到远程仓库(Git常用的命令)_git将远程仓库更新到本地_简单快乐_wsh的博客-优快云博客
warning: LF will be replaced by CRLF in 的原因及解决办法_Programmer not bald的博客-优快云博客
git pull时报错:Your local changes to the following files would be overwritten by merge-优快云博客