「Git入門」git remoteコマンドの使い方

2020年11月5日

説明
git remoteでリモートリポジトリを確認、編集、追加、削除します。

使用例
1.リモートリポジトリのfectchとpushのURLを確認
$ git remote -v
origin http://test001@192.168.1.12:8888/xxx/ARKGAME.git (fetch)
origin http://test001@192.168.1.12:8888/xxx/ARKGAME.git (push)

2.リモートリポジトリの情報を確認
$ git remote show origin
* remote origin
Fetch URL: http://test001@192.168.1.12:8888/xxx/ARKGAME.git
Push URL: http://test001@192.168.1.12:8888/xxx/ARKGAME.git
HEAD branch: master
Remote branches:
xxxx

3.リモートリポジトリの一覧
$ git remote
origin

GitLab

Posted by arkgame