gitee:克隆、同步、三板斧

目录

[1. 先下好git](#1. 先下好git)

[2. 将gitee项目克隆下来](#2. 将gitee项目克隆下来)

[3. 同步远程仓库](#3. 同步远程仓库)

[4. 设置身份标识](#4. 设置身份标识)

[5. 三板斧](#5. 三板斧)

[5.1 git add](#5.1 git add)

[5.2 git commit](#5.2 git commit)

[5.3 git push](#5.3 git push)


1. 先下好git

2. 将gitee项目克隆下来

bash 复制代码
git clone 仓库链接

3. 同步远程仓库

bash 复制代码
git pull

4. 设置身份标识

bash 复制代码
git config --global user.name "你的名字"
git config --global user.email "你的Gitee邮箱"

5. 三板斧

5.1 git add

添加文件到本地仓库。

bash 复制代码
git add 文件名

5.2 git commit

备注提交信息。

bash 复制代码
git commit -m "文件备注"

5.3 git push

提交本地仓库中的文件至远端仓库。

bash 复制代码
git push

然后会提示输入gitee的用户名和密码,密码不回显。

相关推荐
智碳能碳管理平台2 天前
碳排放核算软件如何支撑工业能碳大数据与节能优化
gitee·能碳管理系统·智碳能碳管理平台·企业能碳管理系统·碳排放核算软件·绿色工厂申报saas·能碳管理 ems
yubang32231112 天前
Android保活sdk
android·gitee·保活
cakeism8252 天前
金融行业 DevOps 平台推荐:2026年主流方案对比与 Gitee 选型解析
金融·gitee·devops
71777710 天前
研发平台选哪家比较好:2026年主流平台对比与Gitee选型指南
人工智能·gitee
ai大模型-探索者10 天前
Git在PyCharm中的使用完全指南
pycharm·gitee
明天…ling10 天前
gitee与vscode远程连接
vscode·gitee
我命由我1234511 天前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制
烛之武12 天前
Git教程笔记
git·gitee
71777713 天前
国内组件安全扫描工具选哪家:2026年主流方案对比与选型指南
人工智能·gitee