動作確認は、ローカルのファイルシステムで行うのが簡単
$mkdir base.git
$cd base.git
$git init --bare --shared
$cd ..
$git clone --bare --shared base.git second.git
$ git clone base.git test0
Cloning into 'test0'...
warning: You appear to have cloned an empty repository.
done.
$cd test0
$ git remote set-url --push origin ../second.git
$ git remote -v
origin /home/ok/git_test/base.git (fetch)
origin ../second.git (push)
$ echo 'first commit' > a
$ git add .
$ git commit -m 'first commit'
[master (root-commit) 8c08e8e] first commit
1 file changed, 1 insertion(+)
create mode 100644 a
$ git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 212 bytes | 212.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To ../second.git
* [new branch] master -> master