初始化
git init
查看当前仓库状态
git status
将项目的文件添加到仓库中
git add test.txt
git add -A
git add .
将add的文件commit到仓库
git commit -m "提交内容介绍"
将本地的仓库关联到远程仓库上
git remote add origin 远程仓库地址
代码合并 拉取
git pull --rebase origin master
代码上传到远程仓库
git push -u origin master
若本号内容有做得不到位的地方(比如:涉及版权或其他问题),请及时联系我们进行整改即可,会在第一时间进行处理。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有