WorkNote: git-daemon-run & add remote repository to fetch

Host A, IP:192.168.10.4 ( fetch remote repository )
Host B, IP:192.168.10.5 ( remote repository, have a branch “uPad" )

First on Host B install git-daemon-run service (on Ubuntu/Debian) and follow the below steps.

read /usr/share/doc/git-daemon-run/README.Debian document, the article describe how do to setup a git daemon on your computer.

1. sudo ln -s ~/kernel/android-3.0/.git /var/cache/git/android-3.0.git  # create a syminks for git-daemon-run
2. touch ~/kernel/android-3.0/.git/git-daemon-export-ok  # create a tag file for git-daemon-run
3. su sv restart git-deamon  # restart git-deamon-run service

On Host A fetch the git repository step

5. git remote add MyRepo git://192.168.10.5/git/android-3.0.git
6. git fetch MyRepo uPad:uPad

Results:

remote: Counting objects: 15, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 7), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
From git://192.168.10.5/git/android-3.0
* [new branch] uPad -> uPad

廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: