c5ba74cf02cce4c342153f79089100194f30940f
- Author
- Owain Williams <git@pilipalasoftware.co.uk>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(git): use canonical `--remotes` (#13908)
Diff
1diff --git a/plugins/git/README.md b/plugins/git/README.md
2index c0a65137548f0ea15d7d127d577878b505aee6cd..46c36548ad5f51ac009ad914e32726fed3126808 100644
3--- a/plugins/git/README.md
4+++ b/plugins/git/README.md
5@@ -45,7 +45,7 @@ plugins=(... git)
6 | `gbgD` | `LANG=C git branch --no-color -vv \| grep ": gone\]" \| cut -c 3- \| awk '"'"'{print $1}'"'"' \| xargs git branch -D` |
7 | `gbm` | `git branch --move` |
8 | `gbnm` | `git branch --no-merged` |
9-| `gbr` | `git branch --remote` |
10+| `gbr` | `git branch --remotes` |
11 | `ggsup` | `git branch --set-upstream-to=origin/$(git_current_branch)` |
12 | `gbg` | `LANG=C git branch -vv \| grep ": gone\]"` |
13 | `gco` | `git checkout` |
14diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
15index 9ef60d69acf099cbed7a68545f2af1ac2eb73097..16568f22213005068addd96822d19c6756b198f2 100644
16--- a/plugins/git/git.plugin.zsh
17+++ b/plugins/git/git.plugin.zsh
18@@ -153,7 +153,7 @@ alias gbgd='LANG=C git branch --no-color -vv | grep ": gone\]" | cut -c 3- | awk
19 alias gbgD='LANG=C git branch --no-color -vv | grep ": gone\]" | cut -c 3- | awk '"'"'{print $1}'"'"' | xargs git branch -D'
20 alias gbm='git branch --move'
21 alias gbnm='git branch --no-merged'
22-alias gbr='git branch --remote'
23+alias gbr='git branch --remotes'
24 alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
25 alias gbg='LANG=C git branch -vv | grep ": gone\]"'
26 alias gco='git checkout'