Skip to content

Commit 1a0ce5d

Browse files
committed
Push all stashes. #23
1 parent 7284b9c commit 1a0ce5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git-fire

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ new_branch() {
2828

2929
fire() {
3030
git checkout -b "$(new_branch)"
31-
31+
3232
# cd to git root directory
3333
cd "$(git rev-parse --show-toplevel)"
3434

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

49+
for sha in $(git rev-list -g stash); do
50+
git push origin "$sha":refs/heads/stash_"$sha"
51+
done
52+
4953
printf "\n\nLeave building!\n"
5054
}
5155

0 commit comments

Comments
 (0)