有可能吗?
我在文档中阅读过,您可以在本地配置它,.git/config
例如:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
但它是本地设置,据我所知,我无法将其推送到 ie github 或 bitbucket。是否可以强制所有人拉笔记?
是否可以强制所有人拉笔记?
(强调我的)没有。
[remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/*
这是正常设置。您需要添加一个设置来复制笔记引用。有很多可能的方法来做到这一点,例如,如果你从不做自己的笔记:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = refs/notes/commits:refs/notes/commits
如果你做自己的笔记,你会想要一些更有趣的东西,例如:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/notes/commits:refs/notes/origin/commits
然后在运行时操作core.notesRef
设置和/或使用。--notes=
git log
但是,每个想要笔记的人都必须通过在他们的配置中添加额外的行来明确要求笔记fetch
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句