Git 是一个分布式版本控制系统,广泛用于软件开发中管理源代码。以下是一些常用的 Git 指令:
配置
-
配置用户信息
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
-
查看配置信息
git config --list
基本操作
-
初始化仓库
git init
-
克隆仓库
git clone <repository_url>
-
查看仓库状态
git status
-
添加文件到暂存区
git add <file>
git