将本地代码用gif 提交到阿里云项目 常用命令

https://code.aliyun.com/

 在阿里代码新建项目

电脑打开项目目录,右键菜单选择git bash here

命令行依次输入如下命令,将已有项目代码提交到阿里代码服务器

git init
git remote add origin git@code.aliyun.com:用户名/项目名称.git
git add .
git commit -m "首次提交"
git push -u origin master
--------平时常用命令,尽量每天提交一次-----vs2019点git更改,可以直接提交,不需要输入命令----------
git pull
git add -A
git commit -m "测试"
git push

原文地址:https://www.cnblogs.com/simadi/p/14030251.html