Skip to content

Commit

Permalink
Merge pull request #24 from qw3rtman/push-stash
Browse files Browse the repository at this point in the history
Push all stashes.
  • Loading branch information
qw3rtman authored Jul 4, 2016
2 parents aae7b24 + 1a0ce5d commit 4fc630c
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 4fc630c

Please sign in to comment.