![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
小人物大梦想
这个作者很懒,什么都没留下…
展开
-
windows git多账户配置
初始化git项目 git init 配置git邮箱和用户名 git config user.name "wanghuilong" git config user.email "822308952@qq.com" ##查看 git config user.name 生成两个公钥私钥 第一个 ssh-keygen -t rsa -C "822308952@qq.com" ...原创 2018-06-28 09:02:55 · 3253 阅读 · 0 评论 -
git无法pull仓库 报错refusing to merge unrelated histories
我在本地 创建了一个仓库然后git commit 了,现在无法pull远程仓库的代码,报错refusing to merge unrelated histories。 原因是git认为这是两个不同的项目,有着不同的git历史,所以不能合并 解决办法 git pull origin master --allow-unrelated-historie ...原创 2018-07-25 14:59:24 · 3353 阅读 · 0 评论 -
git pull 报错 error:The following untracked working tree files would be overwritten by merge
错误原因一些没有提交到暂存区的文件将被远程的仓库覆盖,请移动或移除这些文件 git clean –dfx 删除 一些没有 git add 的 文件。原创 2018-07-27 08:50:45 · 10398 阅读 · 1 评论 -
git 修改远程仓库地址
1.bash方式 git remote set-url origin git@gitee.com:ShuJuZhongXin/ap-app.git 2.修该配置文件 在项目的.git下面的config文件里,注意.git有可能被隐藏了,怎么显示自己百度...原创 2018-12-12 09:09:07 · 223 阅读 · 0 评论