1、码云新建项目步奏:https://www.cnblogs.com/babysbreath/p/9170455.html
2、git安装、和上传步奏:https://blog.csdn.net/qq_27501889/article/details/64920115?tdsourcetag=s_pctim_aiomsg
3、上传和下载教程:https://www.cnblogs.com/babysbreath/p/7274195.html
上传项目:
1、先在码云中新建项目
2、点击下载/克隆按钮获得项目地址如https://gitee.com/junhuil/nkems.git
3、在要上传的文件右键打开Git bash Here
4、按顺序输入以上命令、中途会弹框输入密码
下载项目:
1、先在本地建一个空文件,在此文件右键打开Git bash Here
2、点击下载/克隆按钮获得项目地址如https://gitee.com/junhuil/nkems.git
3、按顺序输入命令即可
上传命令行截图:
下载命令行截图:
修改gitignore文件后
git rm -r --cached .//清空缓存
git add .//重新提交
git commit -m "update .gitignore"
上传命令:
git init
git remote add origin https://gitee.com/junhuil/boke.git
touch README
git add README
git commit -m'hello'
git add .
git push origin master -f
junhuil
用git的clone下载码云项目
在要存放的位置文件上git base here,依次输入一下命令
git init
git clone htts://xxx.git
三、用vscode的git插件控制码云上的项目
1、在码云上新建一个同名项目,在本地上用git bash命令行上传
2、在vscode编辑编辑器上修改内容,点击那个符号,可看到已修改的city.vue文件
2、先点击+号再点击√
3、输入备注信息,回车
4、点击”...“符号后点击推送,输入账号密码,即可
已经上传过的命令行:
git add .
git commit -m "first commit3" //备注
git push -u origin master //提交
git push -f origin master //强制提交
//如报仓库上传失败则先
//fatal: remote origin already exists.
git remote rm origin
git remote add origin http://git.gdcyberway.com/Johnson-Campaigns/dac-frontend.git
git push -u origin master
https://www.jianshu.com/p/26f4dcfaea8e