我所拥有的文件在本地(新PC上),并在github上存储库和我要克隆/创建PC上的本地存储库。Git的克隆与同一文件的新PC的当前目录比本地远程仓库
我已经做了帖步骤:
$ git init
Initialized empty Git repository in /home/sebastien/.git/
$ git remote add origin https://github.com/xxxxx/yyyyyyyy
$ git pull origin master
remote: Counting objects: 791, done.
remote: Compressing objects: 100% (615/615), done.
remote: Total 791 (delta 148), reused 743 (delta 102), pack-reused 0
Receiving objects: 100% (791/791), 2.04 MiB | 323.00 KiB/s, done.
Resolving deltas: 100% (148/148), done.
From https://github.com/xxxxx/yyyyyyyy
* [new branch] master -> origin/master
* branch master -> FETCH_HEAD
error: Untracked working tree file '.initBash/.AV_functions' would be overwritten by merge.
$ echo $?
128
$ git branch --set-upstream-to=origin/master master
fatal: branch 'master' does not exist
$ echo $?
128
编辑1:本地文件可以是相同的或比对远程回购旧。
你能帮忙吗?
似乎在您初始化存储库是不是空的文件夹。有些文件也存在于您正在克隆的存储库中。 – lschuetze
您创建了'混帐init'本地资源库,但实际上还没有添加任何文件到它。 – chepner