跑跑車首頁(yè)

當(dāng)前位置:首頁(yè)軟件教程使用技巧 → git pull“No remote repository specified”解決方法

git pull“No remote repository specified”解決方法

作者:瀟瀟來(lái)源:本站整理 發(fā)表時(shí)間:2015/9/14 17:51:16 評(píng)論(0)

有些用戶在使用git pull命令更新本地項(xiàng)目的時(shí)候會(huì)遇到“No remote repository specified……”的錯(cuò)誤,那么要如何解決呢?

git pull

fatal: No remote repository specified.  Please, specify either a URL or a

remote name from which new revisions should be fetched.

其實(shí)出問(wèn)題的原因是.git/config的配置出問(wèn)題了。

解決方法:

修改“.git”文件夾里面的“config”文件的url就可以了:

[core]

        repositoryformatversion = 0

        filemode = true

        bare = false

        logallrefupdates = true

        ignorecase = true

        precomposeunicode = false

[remote "origin"]

        url = https://github.com/checkfrank/checkfrank.github.io.git

        fetch = +refs/heads/*:refs/remotes/origin/*

        pushurl = https://github.com/checkfrank/checkfrank.github.io.git

[branch "master"]

        remote = origin

        merge = refs/heads/master

把其中換成你項(xiàng)目的地址就可以了:

url = https://github.com/CrossLee/xxx.git

pushurl = https://github.com/CrossLee/xxx.git


玩家評(píng)論
我要點(diǎn)評(píng)

網(wǎng)名 注:您的評(píng)論需要經(jīng)過(guò)審核才會(huì)顯示出來(lái)。

已有 0 位玩家參與點(diǎn)評(píng)
下載排行