- added 'gfa' alias - git fetch all, and follow new remote branches
- added 'git_new_branch' finction - create new branch, push it to remote and followpull/337/head
parent
f8a4a72080
commit
34a7799eaa
|
|
@ -9,6 +9,7 @@ alias gus='git reset HEAD'
|
|||
alias gm="git merge"
|
||||
alias g='git'
|
||||
alias get='git'
|
||||
alias gfa='git fetch -a; for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do git branch --track ${branch#remotes/origin/} $branch; done'
|
||||
alias gst='git status'
|
||||
alias gs='git status'
|
||||
alias gss='git status -s'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
cite about-plugin
|
||||
about-plugin 'git helper functions'
|
||||
|
||||
function git_new_branch {
|
||||
about 'adds new branch $1 and tracks it on origin'
|
||||
group 'git'
|
||||
|
||||
echo "Running: git checkout -b $1; git push -u origin $1"
|
||||
git checkout -b "$1"; git push -u origin "$1"
|
||||
}
|
||||
|
||||
function git_remote {
|
||||
about 'adds remote $GIT_HOSTING:$1 to current repo'
|
||||
group 'git'
|
||||
|
|
|
|||
Loading…
Reference in New Issue