diff --git a/README.md b/README.md index 25b245a..ff2e852 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ * [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch) * [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head) * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url) +* [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references) +* [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches) +* [Get only remote branches](https://github.com/git-tips/tips#get-only-remote-branches) * [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file) * [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion) @@ -90,6 +93,21 @@ git checkout -- git remote set-url origin ``` +## Get list of all remote references +```sh +git remote +``` + +## Get list of all local and remote branches +```sh +git branch -a +``` + +## Get only remote branches +```sh +git branch -r +``` + ## Stage parts of a changed file, instead of the entire file ```sh git add -p diff --git a/tips.json b/tips.json index f5ec05d..2d3200f 100644 --- a/tips.json +++ b/tips.json @@ -51,6 +51,19 @@ "title": "Changing a remote's URL", "tip": "git remote set-url origin " }, + { + "title": "Get list of all remote references", + "tip": "git remote", + "alternatives": "git remote show" + }, + { + "title": "Get list of all local and remote branches", + "tip": "git branch -a" + }, + { + "title": "Get only remote branches", + "tip": "git branch -r" + }, { "title": "Stage parts of a changed file, instead of the entire file", "tip": "git add -p"