Git学习

2018-06-18 01:35:07来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

1、detached HEAD

当前目录为未命名的分支,需要命名

 2、fatal: not a git repository (or any of the parent directories): .git

没有建立Git仓库

 3、fatal: 'origin' does not appear to be a git repository

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.

# @ 解决

$ git remote -v 查看当前所有远程仓库,若没有 Heroku 的仓库则通过下列命令添加

$ git remote add <自定义仓库名> <仓库地址> ( 例如:git remote add Maldini https://git.heroku.com/mighty-harbor-34894.git )

# @ 参考

...

 

warning: no common commits

remote: Counting objects: 3, done.

remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0

Unpacking objects: 100% (3/3), done.

From https://github.com/thy00/test

 * branch            master     -> FETCH_HEAD

 * [new branch]      master     -> test/master

fatal: refusing to merge unrelated histories

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:对JQuery中Ajax应用与jQuery插件的理解与笔记

下一篇:java数据类型转换