git config --global user.email “邮箱”
git config --global user.name “姓名”
git init
// 初始化git
git add
. // 存储到暂存区
git commit -m
“版本信息”
git status (查看状态)
//所以文件已被提交
$ git status
On branch master
nothing to commit, working tree clean
//文件在暂存区没有提交
git status
On branch master
Changes to be committed:
(use “git reset HEAD …” to unstage)
modified: aaa.txt
创建分支
git branch “要创建的分支名称”
git branch 查看当前有多少分支