Skip to content

Commit

Permalink
Move 'push' command to separate executable
Browse files Browse the repository at this point in the history
  • Loading branch information
extsoft committed Sep 6, 2017
1 parent ff028b3 commit fdf306a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/git-elegant
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,14 @@ __batch() {
fi
}

push() {
local BRANCH=$(__branches 'git branch | grep \*')
git push -u origin $BRANCH:$BRANCH
}

rebase() {
git fetch --tags
git rebase $RMASTER
}

push-after-rebase() {
rebase
push
git-elegant push
}

feature() {
Expand Down
7 changes: 7 additions & 0 deletions src/main/git-elegant-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e

default() {
local BRANCH=$(__branches 'git branch | grep \*')
git push -u origin $BRANCH:$BRANCH
}

0 comments on commit fdf306a

Please sign in to comment.