常用命令总结
git clone https://github.com/user_name/working_directory
#将云端的用户名为 user_name 下的名为 working_directory 的仓库拉到本地
git add .
#注意 add 后面有个英文句号。这句的意思让 git 跟踪命令行所在目录下的所有更改
git commit -m "message for items added by git"
#这句的意思是确认目前由 git add 提交的所有更改
git push
#将已经确认的更改提交到云端
git branch
查看所有分支
git checkout branchname
切换分支名
git checkout -b branchname
创建并切换分支