1、使用git clone GitHub - vesoft-inc/nebula: A distributed, fast open-source graph database featuring horizontal scalability and high availability 或者 sudo git clone -b master GitHub - vesoft-inc/nebula: A distributed, fast open-source graph database featuring horizontal scalability and high availability
2、对下载下来的代码git log
commit e89a428d565e464ee1dcc2e4b9d81faec4ead991
Author: jie.wang <38901892+jievince@users.noreply.github.com>
Date: Tue Mar 16 17:41:00 2021 +0800
build nebula-tools docker image (#2454)
commit cb84ca58cdbc73bcc2e2b95555930613c5e39f49
Author: laura-ding <48548375+laura-ding@users.noreply.github.com>
Date: Mon Mar 8 17:43:09 2021 +0800
fix build error under g++ 9.3.0 (#2455)
commit ad8899e5429f7e3cac4c65291bad898e64209d82
Author: min.wu <50101159+whitewum@users.noreply.github.com>
Date: Fri Feb 19 14:39:59 2021 +0800
comment out roadmap (#2447)
commit e86feb7da5cb6f8960cc72db34ba654464ebb064
Author: KinhanS <70884753+KinhanS@users.noreply.github.com>
Date: Mon Jan 18 10:20:30 2021 +0800
Run command at background to avoid fork (#2340)
Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
3、git remote -v
origin https://gitclone.com/github.com/vesoft-inc/nebula.git (fetch)
origin https://gitclone.com/github.com/vesoft-inc/nebula.git (push)
补充:就算我fork了源代码,页面上显示是最新的,按照社区文档步骤进行clone fetch rebase,下载下来的还是2021年某个commit的版本。
有没有大佬知道这个咋整 
按社区步骤,先fork(GitHub页面显示的是最新的),clone下来后git log显示的版本
# commit 219d000a30ea1d0f4f41a4f835aca7a90d54df7a
# Author: hs.zhang <22708345+cangfengzhs@users.noreply.github.com>
# Date: Mon Nov 8 17:18:43 2021 +0800
git fetch后显示
From https://gitclone.com/github.com/vesoft-inc/nebula
* [new branch] cloud -> upstream/cloud
* [new branch] dependabot/maven/src/jni/java/junit-junit-4.13.1 -> upstream/dependabot/maven/src/jni/java/junit-junit-4.13.1
* [new branch] dependabot/maven/src/tools/native-client/junit-junit-4.13.1 -> upstream/dependabot/maven/src/tools/native-client/junit-junit-4.13.1
* [new branch] dependabot/maven/src/tools/spark-sstfile-generator/mysql-mysql-connector-java-8.0.16 -> upstream/dependabot/maven/src/tools/spark-sstfile-generator/mysql-mysql-connector-java-8.0.16
* [new branch] ent -> upstream/ent
* [new branch] master -> upstream/master
* [new branch] remove-discard -> upstream/remove-discard
* [new branch] v1.0.0 -> upstream/v1.0.0
* [new branch] v1.0.0-rc3 -> upstream/v1.0.0-rc3
* [new branch] v1.0.0-rc4 -> upstream/v1.0.0-rc4
* [new branch] v1.0.1 -> upstream/v1.0.1
* [new branch] v1.1.0 -> upstream/v1.1.0
* [new branch] v1.2.0 -> upstream/v1.2.0
* [new branch] whitewum-patch-1 -> upstream/whitewum-patch-1
* [new branch] whitewum-patch-2 -> upstream/whitewum-patch-2
是不是这个gitclone.com的有啥问题,但我git remote add upstream https://github.com/vesoft-inc/nebula.git
后,自动就变成了这个网址
origin https://gitclone.com/github.com/sworduo/nebula.git (fetch)
origin https://gitclone.com/github.com/sworduo/nebula.git (push)
upstream https://gitclone.com/github.com/vesoft-inc/nebula.git (fetch)
upstream no_push (push)
steam
3
这个应该是 git 操作问题,你试试
git remote remove upstream
再把上游加回来
git remote add https://gitclone.com/github.com/vesoft-inc/nebula.git
1 个赞
不行
倒退到更早的版本了
commit e89a428d565e464ee1dcc2e4b9d81faec4ead991
Author: jie.wang <38901892+jievince@users.noreply.github.com>
Date: Tue Mar 16 17:41:00 2021 +0800
build nebula-tools docker image (#2454)
steam
6
我知道为啥了,你用了代理,不是和 GitHub 直接交互,所以 push 那是空的。
push为空是因为根据社区步骤把push给关了,因为我这里不能直接提交到上游 
steam
8
Orz 我错了。你可以给终端开代理啊,然后 upstream 设置成我们的 GitHub 地址。
请问大佬怎么拿最新的,我直接git clone下载也没指定版本啊 
steam
10
我理解没错的话,你应该 upstream 直接设置成我们,代码就新了
git remote add upstream git@github.com:vesoft-inc/nebula.git
我习惯了用 ssh。不要用加速的镜像了。
怎么看有没有用加速的镜像,我是直接git remote add upstream https://github.com/vesoft-inc/nebula.git
拿到的不是最新版本
steam
12
Orz 我也是个 git 新手。我去找个人给你看看,也许你本地的设置也得调
sudo git remote add upstream https://github.com/vesoft-inc/nebula.git
git remote -v
origin https://gitclone.com/github.com/sworduo/nebula.git (fetch)
origin https://gitclone.com/github.com/sworduo/nebula.git (push)
upstream https://gitclone.com/github.com/vesoft-inc/nebula.git (fetch)
upstream https://gitclone.com/github.com/vesoft-inc/nebula.git (push)
像这样,add之后url就变了Orz
min.wu
14
git config --global url.“https://gitclone.com/”.insteadOf https://
你是不是配置过这个了?
2 个赞
我看了全局配置有这个,可能是这个问题,我去掉试试,谢谢大佬 
system
关闭
17
此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。