Daily Archives: May 28, 2017

Git常用操作命令

reference: http://www.cnblogs.com/xingzhi/archive/2011/09/30/2196214.html http://nvie.com/posts/a-successful-git-branching-model/ 回退到某个版本,放弃这个版本之后的commit git reset f0ad346f8b000add810fd7a6f986c8e813b36a41 放弃最近一次的commit: git reset –soft HEAD1 远程仓库相关命令 检出仓库:$ git clone git://github.com/jquery/jquery.git 查看远程仓库:$ git remote -v 添加远程仓库:$ git remote add name url 删除远程仓库:$ git remote rm name 修改远程仓库:$ git remote set-url –push name newUrl 拉取远程仓库:$ git pull remoteName localBranchName 推送远程仓库:$ git … Continue reading

Posted in Mobile | Leave a comment