こんにちは。
本日はGitのコマンドメモです。
- 概要
- git branch
- git branch -r(--remotes)
- git branch -a(--all)
- git branch -v(--verbose)
- git branch -vv
- git remote
- git remote -v(--verbose)
- git remote show -n リポジトリ名
概要
ブランチの情報を知りたい。。。
そんなときに使用できるコマンドのメモです。
git branch
ローカルブランチの一覧を表示します。
このコマンドで、自分が今どのブランチにいるのかも
確認することができます。
git branch -r(--remotes)
リモートブランチの一覧を表示します。
git branch -a(--all)
ローカルブランチとリモートブランチの一覧を表示します。
git branch -v(--verbose)
最新のコミット情報と合わせて
ブランチの一覧を表示します。
git branch -vv
git branch -v(--verbose)
の情報と
紐づくリモートブランチの情報を表示します。
git remote
リモートリポジトリの名前を表示します。
git remote -v(--verbose)
リモートリポジトリの詳細の情報を表示します。
fetchとpushの情報が表示されます。
git remote show -n リポジトリ名
指定したリポジトリの詳細の情報を表示します。
以上です。