Git 是用来团队协作开发的一个工具,Git是最先进的分布式版本控制系统 (svn是集中式)
因为Git是分布式的版本控制系统,和集中式系统有着很多优势
初始化仓库
git init
提交到暂存区
git add .
提交到历史区
git commit -m 'tip'
查看代码状态
git status
连接远程仓库
git remote add origin master 远程仓库地址
拉取远程仓库 master 分支 默认的一个分支
git pull origin master
推送本地代码到远程仓库 master 分支
git push origin master
查看历史版本
git log
扫码关注腾讯云开发者
领取腾讯云代金券
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. 腾讯云 版权所有