git 命令总结

 

$ git remote add origin git@github.com:JaceyKan/practice.git    //添加远程库

 $ git add *

$ git commit -m "add practice"

$ git checkout -b gh-pages  //创建gh-pages分支,然后切换到gh-pages分支

$ git branch  //查看当前分支

$ git push -u origin master  //第一次推送 到远程库的 master分支

$ git merge gh-pages  //合并指定分支到当前分支,把gh-pages分支的工作成果合并到master分支上

$ git branch -d gh-pages  //删除gh-pages分支

posted @ 2017-03-01 18:38  JaceyKan  阅读(148)  评论(0)    收藏  举报