Reputation: 2491
Consider a remote repository which has some commits and notes associated with each commit. How to pull in the remote branches and the notes ref from the remote repository?
The below command does not retrieve the notes:
git fetch origin refs/notes/commits
any suggestions?
Upvotes: 2
Views: 127
Reputation: 12629
I've just found it on the Git website:
$ git fetch origin refs/notes/*:refs/notes/*
Or you can put it the repo config .git/config
, watch the last line:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:schacon/kidgloves.git
fetch = +refs/notes/*:refs/notes/*
The article mentioned above is full of expressions like breaks down
, difficult
, super difficult
and painful
. So I'd avoid notes like the plague.
Upvotes: 2