2

考虑一个远程存储库,它有一些提交和与每个提交相关的注释。如何从远程存储库中提取远程分支和注释引用?

以下命令不会检索注释:

git fetch origin refs/notes/commits

有什么建议么?

4

1 回答 1

2

我刚刚在Git 网站上找到了它:

$ git fetch origin refs/notes/*:refs/notes/*

或者你可以把它放在 repo config.git/config中,看最后一行:

[remote "origin"]
  fetch = +refs/heads/*:refs/remotes/origin/*
  url = git@github.com:schacon/kidgloves.git
  fetch = +refs/notes/*:refs/notes/*

上面提到的文章充满了breaks down,difficultsuper difficult等表达painful。所以我会避免像瘟疫这样的笔记。

于 2013-09-11T06:36:11.453 回答