Git: How do I push objects created with git hash-object back to origin?

前端 未结 1 1912
我寻月下人不归
我寻月下人不归 2021-01-06 16:07

I\'m trying to use git notes to store some (small) blobs of data. I almost have it working, but I\'m having trouble when I try to fetch the data to another machine.

1条回答
  •  南方客
    南方客 (楼主)
    2021-01-06 16:29

    Notes can contain arbitrary data, they are not required or even expected to contain references to other objects. For that reason git will not interpret note contents as references. Since the commands that you have shown would not create an references to your hashed object, that object would not be pushed to a different repository. In fact the object would be eligible for garbage collection once it becomes old enough.

    0 讨论(0)
提交回复
热议问题