Push notes to remote git repository

1.1k views Asked by At

I recently came across some old paper documentation for a project I have archived in Git that is not reflected in the commits. Not wanting to rebase and amend all the various commits and rewrite history I decided to add the new found information via Git Notes. I entered the notes in my local repository.

Now I've found that I can't push these notes to the remote repository, however.

I tried the following commands: git push "origin_ssh" "/refs/notes/*"

git push "origin_ssh" /refs/notes/commits

git push "origin_ssh" /refs/notes

All of these give the error fatal: remote part of refspec is not a valid name in /refs/notes

What am I doing wrong here? How do I push the notes to the remote repository?

1

There are 1 answers

0
Carl Winbäck On

Solution: Don’t add a slash before refs/notes/*.