# Git版本控制

# 克隆

git clone https://gitee.com/y_project/RuoYi-Vue.git

# 关联已经git初始化的项目到远程仓库地址

git remote add origin https://github.com/duoduo93/qlcms.git

error: remote origin already exists.

解决办法:

第一: 查看远程库的信息: git remote -v
第二: 删除现有的远程仓库: git remote rm origin
第三: 建立新的远程仓库地址: git remote add origin + 远程仓库地址

git branch -M main

git push -u origin main

# git 代理设置

设置当前代理 git config --global http.proxy 127.0.0.1:2951 git config --global https.proxy 127.0.0.1:2951

查看代理 git config --global --get http.proxy git config --global --get https.proxy