2018年6月22日

git pull fatal: refusing to merge unrelated histories

摘要: 1.首先我github有个远程仓库,然后我本地有个仓库 本地仓库我新添加了一个文件,然后我去关联(git remote add origin git@github.com:qshilary/gittest.git)以后 2.Git push发现报错了 eqiasui@CN00214190 MINGW 阅读全文

posted @ 2018-06-22 11:54 江湖小女生 阅读(588) 评论(1) 推荐(0) 编辑

Git报错:Your branch is ahead of 'origin/master' by 1 commit

摘要: . commit之后,用git status,打印信息为: # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) 阅读全文

posted @ 2018-06-22 11:26 江湖小女生 阅读(2351) 评论(0) 推荐(0) 编辑

git remote add origin错误

摘要: 如果输入$ Git remote add origin git@github.com:djqiang(github帐号名)/gitdemo(项目名).git 提示出错信息:fatal: remote origin already exists. 解决办法如下: 1、先输入$ git remote r 阅读全文

posted @ 2018-06-22 11:24 江湖小女生 阅读(494) 评论(0) 推荐(0) 编辑

[转]Git 撤销操作

摘要: 二. Git撤消操作 12.1 修改最后一次提交 git commit --amend 1.新建一个文件 2.提交一个之前的更改 3.跟踪这个文件 4.跟前一次一起提交 提示你是否重新编辑提交说明,如果不编辑退出后还是跟之前一样提交 commit 成功 或 git commit -m “” 可以直接 阅读全文

posted @ 2018-06-22 10:42 江湖小女生 阅读(170) 评论(0) 推荐(0) 编辑

导航