2017-05-26 56 views
0

有沒有可能?如何讓git筆記自動爲所有克隆回購的人拉動?

我在文檔閱讀,你可以在你的本地.git/config 喜歡它配置:

[remote "origin"] 
    fetch = +refs/heads/*:refs/remotes/origin/* 

但它是本地設置和我的理解,我不能推它即github上或到位桶。是否有可能強迫每個人拉筆記?

+0

什麼是說明文件? –

+0

@BasileStarynkevitch哎呀這是博客帖子https://git-scm.com/blog/2010/08/25/notes.html – Derp

+0

git並強迫大家做一些奇怪的事情 –

回答

1

是否有可能大家拉筆記嗎?

(重點煤礦)號

[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 

,然後在運行git log時操作core.notesRef設置和/或使用--notes=

大家誰希望筆記,但是,必須明確的音符,通過增加一個額外fetch線到他們的配置。