安装软件
可以在我这里提取
https://pan.baidu.com/s/1Kw8qS9j_b4zzrpaUl0RMxQ
提取码:z3p5
三个软件,依次安装,注意尽量不要有中文路径
Git-2.23.0-64-bit.exe是Git
TortoiseGit-2.10.0.2-64bit上传
TortoiseGit-LanguagePack-2.10.0.0-64bit-zh_CN.msi是设置成中文
在HBuilder中安装插件
工具—>插件安装,安装Git
然后在码云中新建一个创建仓库
开始上传
选择一个目录创建版本库
然后在我们的HBuilder中选中相应的项目,右击
输入相应的信息并提交且推送(这里的提交就相当于添加到一个区域,然后推送就是把这个区域的值放到码云上面去)
然后就输入一系列的信息,选择自己相应的填写
我提交且推送的时候报了一个错
git.exe push --recurse-submodules=check --progress "origin" master
To https://gitee.com/Neverland-Traceoff/shop-admin.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://gitee.com/Neverland-Traceoff/shop-admin.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git 未能顺利结束 (退出码 1) (1890 ms @ 2020/6/18 17:47:27)
这里因为我码云上和HBuilder中的项目中都有README.md文件,这里我选择将HBuilder中的项目的文件和码云的都删除再尝试
结果
这里我们继续改变本地项目页面的值再提交且推送
可以发现已经检测到了
码云上也已经显示出来了
改变码云的值然后本地项目拉取
将111删除
也已经成功
创建一个新文件然后提交且推送到码云上
不知道为什么我这里提交且推送的时候检测不到新创建的文件
所以我就只能先手动添加
接着一直走就行了
可以看到码云也已经有了
然后在码云中改变值再拉取也是有值的