Skip to content

Commit

Permalink
Move 'rebase' command to separate executable
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKarabaza committed Sep 6, 2017
1 parent 42d1728 commit 158e7ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/git-elegant
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ push() {
git push -u origin $BRANCH:$BRANCH
}

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

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

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

0 comments on commit 158e7ed

Please sign in to comment.