mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
[Plugin] Git: Alias for git-svn, rebase and dcommit, and if the repos is not clean, use git stash.
This commit is contained in:
parent
ee75505bbc
commit
2cefde5fcf
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ alias gcpe='git cherry-pick --edit '
|
||||||
|
|
||||||
# Git and svn mix
|
# Git and svn mix
|
||||||
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
|
||||||
|
alias gsup= !DIRTY=$(git status --porcelain -uno) && git stash save svn-up-auto && git svn rebase && test -n \"$DIRTY\" && git stash pop
|
||||||
|
alias gsc=!DIRTY=$(git status --porcelain -uno) && git stash save svn-up-auto && git svn dcommit && test -n \"$DIRTY\" && git stash pop
|
||||||
|
|
||||||
#
|
#
|
||||||
# Will return the current branch name
|
# Will return the current branch name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue