Information Technology Reference
In-Depth Information
• The $ git status -sb command can be used together with $ git
fetch toascertainifyourbranchissynchronizedwiththeremotebranch.
• Many commands can be simplified as missing parameters—as in $ git
rebase —to default to tracking branches.
10-5. Coworking without a central repos-
itory
Problem
You want to simulate the cooperation of two developers John and Sarah without a cent-
ral repository. In this case the coworking will be organized with two repositories:
10-05/johns-repo —a non-bare repository of the first developer
10-05/sarahs-repo —a non-bare repository of the second developer
Both developers will commit within their master branches. John will use the
sarah branch to fetch Sarah's work and Sarah will use the john branch to fetch
John's work.
Hint This recipe underlines the distributed nature of git where everyone can cooper-
ate with each other.
Solution
Create a new directory with:
$ cd git-recipes
$ mkdir 10-05
$ cd 10-05
Search WWH ::




Custom Search