配置公钥后的常用步骤,建议在要上传的文件中右键打开git
- 全局配置
- git init :初始化
- git add . :上传缓存区
- git commit - m “random” :添加说明
- git remote rm origin :切断原来链接
- git remote add origin +SSH地址或着http地址 :与远程仓库建立连接
- git push origin master
git push -f origin master :强制推送
设置为 Windows 风格的换行符
git config --global core.autocrlf true
设置为 Unix 风格的换行符
git config --global core.autocrlf input