git命令

git clone http://github.com/mayuanwei/excelreadandwrite

git init

git status

git add filename

git commit -m '提交注释' (git commit -a)

git push origin maste 推送到远程仓库分支

git fetch origin master 取回远程仓库分支(默认取回所有分支)

git merge 合并

git pull (git fetch+git merge)

git branch brname 创建分支

git log

git checkout brname 检出到分支(git checkout -b brname 创建并检出到分支)

原文地址:https://www.cnblogs.com/myprovencesky/p/5779845.html