官方帮助文档:https://git-scm.com/docs

#1.全局配置
git config --global user.name "[name]"
git config --global user.email "[email address]"

#2.创建仓库
git init [project-name]
git clone [url]

#3.创建分支
git branch [branch-name]

#4.切换分支
git checkout [branch-name]

#5.提交修改
git stage .
git commit -m "[descriptive message]"

#6.回滚操作
git reset [file]
10-06 09:26