美文网首页软件测试
Git上传/拉取代码

Git上传/拉取代码

作者: 明小五 | 来源:发表于2020-06-10 11:09 被阅读0次

一、上传代码

创建 git 仓库:
mkdir rest_Assured
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xxxxx/rest_test.git 
//https为自己分支的地址
git push -u origin master
已有仓库
cd existing_git_repo //进入本地的仓库
git remote add origin https://gitee.com/xxxxx/rest_test.git   
//https为自己分支的地址 
git push -u origin master

二、拉取代码

git clone https://gitee.com/lshwhm123/rest_Assured.git

相关文章

网友评论

    本文标题:Git上传/拉取代码

    本文链接:https://www.haomeiwen.com/subject/pjxetktx.html