git add [文件名] //标记指定文件
git commit -m "文本" //备注标记的文件并提交到暂存区
git branch //查看本地分支
git branch -a //查看远程分支
git pull [远程仓库名] [远程分支名] //拉取远程代码
git status // 查看当前的提交状态
git push <远程仓库名> <本地分支名>:<远程分支名> //将本地分支的代码推到,对应的
远程仓库的远程分支中
//配置用户名和邮箱
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
//查看命令
git config --list
//保存在~/.gitconfig