Skip to content

Commit

Permalink
Push all stashes. #23
Browse files Browse the repository at this point in the history
  • Loading branch information
qw3rtman committed Jul 4, 2016
1 parent 7284b9c commit 1a0ce5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-fire
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ new_branch() {

fire() {
git checkout -b "$(new_branch)"

# cd to git root directory
cd "$(git rev-parse --show-toplevel)"

Expand All @@ -46,6 +46,10 @@ fire() {
git push --set-upstream "${remote}" "$(current_branch)" || true
done

for sha in $(git rev-list -g stash); do
git push origin "$sha":refs/heads/stash_"$sha"
done

printf "\n\nLeave building!\n"
}

Expand Down

0 comments on commit 1a0ce5d

Please sign in to comment.