随笔分类 - git
摘要:来自:https://www.cnblogs.com/bluestorm/p/6252900.html 侵删 git branch(分支命令的使用http://hbiao68.iteye.com/blog/2055493 0.可以通过git branch -r 命令查看远端库的分支情况 1,从已有的
阅读全文
摘要:来自:https://www.linuxidc.com/Linux/2012-04/58985.htm 侵删 当要push代码到git时,出现提示: error:failed to push some refs to ... Dealing with “non-fast-forward” error
阅读全文
摘要:方法1:如果你想保留刚才本地修改的代码,并把git服务器上的代码pull到本地(本地刚才修改的代码将会被暂时封存起来) [plain] view plain copy git stash git pull origin master git stash pop [plain] view plain
阅读全文
摘要:注: origin为远程仓库名称 master为远程分支名称 //第一次提交所有代码 1.git clone 项目url 2.复制.git 和文件到根目录 3.git add . 4.git commit -m "XXXX(提交说明)" 5.git push -u origin master:xxx
阅读全文