git 基本使用命令

git基本使用命令

设置用户名 git config --global user.name

设置用户签名 git config --global user.email

初始化本地库 git init

查看本地库状态 git status

将文件添加到暂存区 git add 文件名

将文件提交到本地库 git commit-m "日志信息"文件名

查看历史 git log

代码提交流程

远端操作

1、注册账号、登录账号

2、新建仓库

3、创建分支

本地操作:

1、git clone 加上仓库地址

2、git checkout 到自己的本地分支

3、编辑本地代码

4、git add .

5、git commit -m "demo"

6、git push

相关推荐
徽京人2 小时前
VS Code 接入Esp 32步骤
vscode·单片机·嵌入式硬件
番茄不是西红柿kk7 小时前
deepseek-harness跨平台桌面端二开项目(附git仓库地址+安装包)
git·agent·codex·deepseek·deepseekharness
leoZ23110 小时前
10-Git 仓库蒸馏术:从代码仓库到 OpenClaw 虚拟人-蒸馏工具链
大数据·git·深度学习·神经网络·目标检测·elasticsearch·lstm
oushaojun211 小时前
vscode中支持deepseek ai辅助编程
vscode·copilot·deepseek
fpcc1 天前
工具使用—git diff命令分析说明
git·工具
console.log('npc')1 天前
Git 删除指定提交记录操作指南
git
随风丶飘1 天前
[特殊字符] 告别“update“和“fix bug“——Smart Git Commit LLM 让 AI 帮你写专业的 Git 提交信息
人工智能·git·bug
yanlaifan1 天前
git clone时候指定换行符
git
小小安于乱1 天前
解决IDEA的git插件pull代码冲突但右下角不提示消息问题
java·git·intellij-idea
ITKEY_1 天前
git 命令行操作回退到指定版本
git