Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マシン A (ローカル) に git リポジトリがあるとします。B に ssh して実行したかのように、それをマシン B (遠く) に複製したいと思いますgit clone me@A:/repo.gitが、B から A ではなく、A から B にしか ssh できません。 AからB?
git clone me@A:/repo.git
インストールに応じて、いくつかの方法(プロトコル)があります。前の回答に従って、そこから remote+fetch を追加するか、ssh/http/git のいずれかのプロトコルを使用して直接クローンを作成できます。
自問する必要がある別の質問があります-クローンされたリポジトリに読み取り専用または読み取りと書き込みの資格情報が必要ですか。
さまざまなプロトコルと詳細情報についての詳細: (クローンの作成方法を含む)
http://git-scm.com/book/ch4-1.html