From 1a0ce5d4cb8bfa1b3ada168d3bbef86ac090575b Mon Sep 17 00:00:00 2001 From: Nimit Kalra Date: Mon, 4 Jul 2016 13:51:31 -0500 Subject: [PATCH] Push all stashes. #23 --- git-fire | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git-fire b/git-fire index 7c58c9c..f21a502 100755 --- a/git-fire +++ b/git-fire @@ -28,7 +28,7 @@ new_branch() { fire() { git checkout -b "$(new_branch)" - + # cd to git root directory cd "$(git rev-parse --show-toplevel)" @@ -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" }