初始化和配置
1.git init
初始化一个新的 Git 仓库。
git init
2.git clone
克隆一个远程仓库到本地。
git clone https://github.com/username/repo.git
3.git config
配置 Git 用户信息、别名等。
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
基本操作
4.git add
添加文件到暂存区。
git add file.txt
git add .
5.git commit
提交暂存区的更改。
git commit -m "Commit message"
6.git status
查看工作目录的状态。
git status
7.git diff
查看未暂存和未提交的更改。
git diff
还有很多自己在网上看吧