So far, we have been creating notes in our own local repository, which is fine. But if we want to share those notes, we have to be sure to be able to push them. We would also like to be able to retrieve other people's notes from the remote repository. Unfortunately, this is not so simple.
Before we can start, we need another clone from the local clone we already have. This is to show the push and fetch mechanism of Git with git notes
:
- Start by checking out the master branch:
$ git checkout master
Checking out files: 100% (1529/1529), done.
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
- Now, create a local branch of all the
stable-3.1
branches:
$ git branch stable-3.1 origin/stable-3.1
Branch stable-3.1 set up to track remote branch stable-3.1 from origin.
- We are checking out all these branches because we want to clone this repository and, by default, all the
refs/heads/*
branches will be cloned. So, when we clone...