Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8930811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:58:41+00:00 2026-06-15T08:58:41+00:00

I’m trying to use git notes to store some (small) blobs of data. I

  • 0

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.

I’m using git hash-object and storing the returned hash in the note.

git hash-object -w timestamp.signed.tsr | git notes --ref=timestamps add --file -

I can push and fetch the notes that contain the hashes using the method outlined in Note to Self.

git push origin refs/notes/timestamps
git fetch origin refs/notes/*:refs/notes/*

However, I can’t figure out how to get the blob objects to go along with it. I’m fairly certain my blob objects aren’t getting pushed to origin. The way I’m checking is after pushing a note of 0dd470d2fc5556de62d813537fd483aede2f6b35, which should be the hash of a blob object, I go to the machine with my bare repository and look for objects/0d/d470d2fc5556de62d813537fd483aede2f6b35. Since it’s not there, I assume it’s never getting pushed.

Is there something simple I’m overlooking that I need to do so git knows the blob objects are referenced by the notes? Would it be better to store the data directly in the note? Would it be better to base64 encode the data and store it directly in the note?

Any tips would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:58:42+00:00Added an answer on June 15, 2026 at 8:58 am

    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
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I have an array which has BIG numbers and small numbers in it. I
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.