Git 常用的是以下 6 个命令:git clone、git push、git add 、git commit、git checkout、git pull
git clone :拷贝一份远程仓库,也就是下载一个项目
git pull :下载远程代码并合并
git add :添加文件到暂存区
git commit :将暂存区内容添加到仓库中
git push :上传远程代码并合并
git checkout (branchname) :切换分支
其他命令
git branch (branchname):创建分支
git init : 初始化仓库
image.png