Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| git_remote_ls_remote [2019/03/08 09:45] – created rpjday | git_remote_ls_remote [2019/03/08 13:27] (current) – [git ls-remote] rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| How to examine a remote with '' | How to examine a remote with '' | ||
| + | |||
| + | ===== Examine branches ===== | ||
| + | |||
| + | Local branches: | ||
| + | |||
| + | < | ||
| + | $ git branch | ||
| + | * master | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Remote branches: | ||
| + | |||
| + | < | ||
| + | $ git branch -r | ||
| + | origin/HEAD -> origin/ | ||
| + | origin/ | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | All branches: | ||
| + | | ||
| + | < | ||
| + | $ git branch -a | ||
| + | * master | ||
| + | remotes/ | ||
| + | remotes/ | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Verbose branches: | ||
| + | |||
| + | < | ||
| + | $ git branch -v | ||
| + | * master 610cd4eadec4 Merge branch ' | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ git branch -vv | ||
| + | * master 610cd4eadec4 [origin/ | ||
| + | ^^^^^^^^^^^^^^^ | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ===== Examine remotes ===== | ||
| + | |||
| + | ==== git remote ==== | ||
| + | |||
| + | < | ||
| + | $ git remote | ||
| + | origin | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ git remote -v | ||
| + | origin https:// | ||
| + | origin https:// | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ git remote show origin | ||
| + | * remote origin | ||
| + | Fetch URL: https:// | ||
| + | Push URL: https:// | ||
| + | HEAD branch: master | ||
| + | Remote branch: | ||
| + | master tracked | ||
| + | Local branch configured for 'git pull': | ||
| + | master merges with remote master | ||
| + | Local ref configured for 'git push': | ||
| + | master pushes to master (up to date) | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ==== git ls-remote ==== | ||
| + | |||
| + | Lots of options here ... | ||
| + | |||
| + | < | ||
| + | $ git ls-remote origin | ||
| + | 610cd4eadec4f97acd25d3108b0e50d1362b3319 | ||
| + | 610cd4eadec4f97acd25d3108b0e50d1362b3319 | ||
| + | 51b8b4fb32271d39fbdd760397406177b2b0fd36 | ||
| + | 02b5a6031ba7a8cbfde5d65ff9e13ecdbc4a92ca | ||
| + | 98eae511bd1cf61ba206c2a8efa896f22c52e005 | ||
| + | 5c91199a463b2f3f6e2a256373cc86cde828c029 | ||
| + | c0cae3784a6535760fce053bb1df01caf6ea69cb | ||
| + | 5e2308a3e03994015082ff1cbda5ad6ba579a591 | ||
| + | 0131d367fa05d8bf72f2c34140ce64a9b98b5278 | ||
| + | b7f339a7f63d335135b76cfc1b28b77f3be622d4 | ||
| + | |||
| + | ... snip ... | ||
| + | |||
| + | 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c | ||
| + | c39ae07f393806ccf406ef966e9a15afc43cc36a | ||
| + | 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c | ||
| + | c39ae07f393806ccf406ef966e9a15afc43cc36a | ||
| + | 26791a8bcf0e6d33f43aef7682bdb555236d56de | ||
| + | |||
| + | ... snip ... | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | You can also refer to a URL: | ||
| + | |||
| + | < | ||
| + | $ git ls-remote https:// | ||
| + | </ | ||
| + | |||