Git学习
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
下一篇: 2008年该如何投资中文域名?