Skip to content
umorigu edited this page Jan 12, 2012 · 5 revisions

FFFTP ( http://sourceforge.jp/projects/ffftp/cvs/ ) のミラーリポジトリです。勝手ミラー

変更点説明

kana-improvedブランチの変更点

リポジトリミラーリング手順

参考

Setup

$ cd /tmp
$ mkdir ffftp1
$ cd ffftp1
$ git clone --bare --mirror git://git.sourceforge.jp/gitroot/ffftp/ffftp.git
$ cd ffftp.git
$ git remote add github git@github.com:umorigu/ffftp-mirror.git

Mirroring

$ cd /tmp/ffftp1/ffftp.git
$ git fetch --mirror
$ git push --mirror github

メモ

ssh が入ってない状態で git:// にpushすると

$ git push github
error: cannot run ssh: No such file or directory
fatal: unable to fork

sshを入れるのが面倒なので URL を https://github にして push しようとしたら

$ git push github
Password:

プロンプトが Password: の次の行に出てしまって入力してもなにもならない

remote 先を変えるときは

$ git remote rm github
$ git remote add github git@github.com:umorigu/ffftp-mirror.git

cygwinでsshをインストールして進むとき

公開鍵をGithubに登録する必要がある

$ ssh-keygen -t rsa -C "umorigu@gmail.com"
Generating public/private rsa key pair.
$ cat ~/.ssh/id_rsa.pub

の結果を GitHub - Account Settings - SSH Public Keys - Add another public key に追加