![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Forest_1010
菜鸟笔记笔记笔记
展开
-
SVN笔记1
01 一些概念 repository(源代码库):源代码统一存放的地方 Checkout(提取):当你手上没有源代码的时候,你需要从repository checkout一份 Commit(提交):当你已经修改了代码,你就需要Commit到repository Update (更新):当你已经Checkout了一份源代码, Update一下你就可以和Repository上的源代码同步,你手上的代码就会有最新的变更 02 在windows下安装 SVN 准备svn的安装文件 下载地址:https://sou原创 2020-12-20 09:59:27 · 88 阅读 · 1 评论 -
git报错error: failed to push some refs to ‘https://
在提交到远程仓库的时候报错: 解决方法: git remote rm origin//先移除和远程仓库的连接 git remote add origin 远程仓库地址 //连接远程仓库,创建主分支 git pull origin master//把本地仓库的变化连接到远程仓库主分支 第三步可能会报错,是因为本地仓库和远程仓库实际上是两个独立的仓库,需要先将这两个仓库合并一下(如果本地仓库是直接从远程仓库上clone下来的,则没有问题) git pull origin master --allow-unr原创 2021-01-07 00:11:06 · 251 阅读 · 0 评论 -
git报错refusing to merge unrelated histories
本地仓库和远程仓库实际上是独立的两个仓库,以下命令可以合并这两个独立仓库的历史: git pull origin master --allow-unrelated-histories 只是合并在本地仓库中,想要提交到远程仓库,再使用 git push -u origin master即可。 ...原创 2021-01-06 23:59:08 · 115 阅读 · 0 评论