欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Git学习

程序员文章站 2022-05-12 22:38:41
1、detached HEAD 当前目录为未命名的分支,需要命名 2、fatal: not a git repository (or any of the parent directories): .git 没有建立Git仓库 3、fatal: 'origin' does not appear to ......

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