Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
bca62f78
Unverified
Commit
bca62f78
authored
Sep 26, 2023
by
Adam Johnson
Committed by
GitHub
Sep 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(git): add branch rename alias `gbm` (#11909)
Co-authored-by:
Gabriel Akinyosoye
<
gabrielfemi799@gmail.com
>
parent
aaa74964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
README.md
plugins/git/README.md
+1
-0
git.plugin.zsh
plugins/git/git.plugin.zsh
+1
-0
No files found.
plugins/git/README.md
View file @
bca62f78
...
...
@@ -44,6 +44,7 @@ plugins=(... git)
|
`gbda`
|
`git branch --no-color --merged \| command grep -vE "^([+*]\|\s*($(git_main_branch)\|$(git_develop_branch))\s*$)" \| command xargs git branch --delete 2>/dev/null`
|
|
`gbgd`
|
`LANG=C git branch --no-color -vv \| grep ": gone\]" \| awk '"'"'{print $1}'"'"' \| xargs git branch -d`
|
|
`gbgD`
|
`LANG=C git branch --no-color -vv \| grep ": gone\]" \| awk '"'"'{print $1}'"'"' \| xargs git branch -D`
|
|
`gbm`
|
`git branch --move`
|
|
`gbnm`
|
`git branch --no-merged`
|
|
`gbr`
|
`git branch --remote`
|
|
`ggsup`
|
`git branch --set-upstream-to=origin/$(git_current_branch)`
|
...
...
plugins/git/git.plugin.zsh
View file @
bca62f78
...
...
@@ -125,6 +125,7 @@ alias gbD='git branch --delete --force'
alias
gbda
=
'git branch --no-color --merged | command grep -vE "^([+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch --delete 2>/dev/null'
alias
gbgd
=
'LANG=C git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -d'
alias
gbgD
=
'LANG=C git branch --no-color -vv | grep ": gone\]" | awk '
"'"
'{print $1}'
"'"
' | xargs git branch -D'
alias
gbm
=
'git branch --move'
alias
gbnm
=
'git branch --no-merged'
alias
gbr
=
'git branch --remote'
alias
ggsup
=
'git branch --set-upstream-to=origin/$(git_current_branch)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment