git show(リモートリポジトリの操作)

リモートサーバの表示(originのURLの表示)

 git remote -v

リモートリポジトリの追加

 git remote add shared-repo file:///$HOME/tmp/project1.git

リモートリポジトリの削除

 git remote rm shared-repo

リモートリポジトリのURLの変更

 git remote set-url origin git@bitbucket.org:foo/bar.git

ここではoriginのURLを変更。

リモートリポジトリ参照名の変更

 git remote rename origin ex-origin

orginからex-originへ。

参考

http://progit.org/book/ja/ch2-10.html


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2017-05-15 (月) 16:11:47