配置本地文件夹
1、复制码云的克隆路径(如https://gitee.com/***/performance.git)
2、本地新建文件夹,右键Git Base Here,输入git clone https://gitee.com/***/performance.git(路径是上一步的)
(没有权限,就执行此步骤)进入自动生成的文件夹performance,右键Git Base Here,输入git config --global user.email "841631010@qq.com"(邮箱是码云的登录邮箱),再输入git config --global user.name "dlbderek"(用户名是码云的登录用户名)
可省略
——查看所有分支
——git branch -a
——创建分支
——git branch prometheus
——检查分支
——git checkout prometheus
上传文件 把要上传的文件复制进文件夹performance,依次输入以下命令
git add .
git commit -m "备注"
git push
安装pip的方法
python -m pip install --upgrade pip -i https://pypi.douban.com/simple --user
下载文件 依次执行以下命令
git fetch
git merge
把当前所有修改过的文件放进暂存git add .
提交暂存的文件 git commit -m “注析”
上传到服务器 git push
放弃本地修改 git checkout .
拉取服务器文件 git pull
切换分支 git checkout branchname