git 命令 使用 积累

更新gh-pages分支到本地

1
2
3
$ git clone https://github.com/aopui/home.git
$ git checkout gh-pages #切换分支
$ git pull

或者

1
$ git checkout -b gh-pages origin/gh-pages

提交修改该的代码到 git

1
2
3
4
$ git add .
$ git add --update .
$ git commit -am "注解" #注解不加 push的时候不管用
$ git push

git commit -a//可以直接提交修改,这个还不太会用