Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push all stashes #24

Merged
merged 1 commit into from
Jul 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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