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" }