当前位置:   article > 正文

阿里云云效平台提交代码_首次使用阿里云云效提交代码

首次使用阿里云云效提交代码

先在云效codeup平台上常见一个空的仓库:
https://codeup.aliyun.com/xxxx/xxxx/xxxx.git
将下方修改为自己的仓库地址。

为了标识身份,建议先完成 Git 全局设置(该设置只需要添加一次)

git config --global user.name {"XXXX"} 
git config --global user.name {""} 
  • 1
  • 2

方式一:克隆仓库

git clone https://codeup.aliyun.com/xxxx/xxxx/xxxx.git
cd gpsTest
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

方式二:已有文件夹或仓库

cd existing_folder(跳转至本地项目文件夹)
git init
git remote add origin https://codeup.aliyun.com/xxxx/xxxx/xxxx.git
git add .
git commit -m "add README"
git push -u origin master
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

方式三:导入代码库

git clone --bare https://git.example.com/your/project.git your_path
cd your_path
git remote set-url origin https://codeup.aliyun.com/xxxx/xxxx/xxxx.git
git push origin --tag && git push origin --all
  • 1
  • 2
  • 3
  • 4


  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/936147
推荐阅读
相关标签
  

闽ICP备14008679号