We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0ce5d commit 3024c23Copy full SHA for 3024c23
git-fire
@@ -23,10 +23,12 @@ user_email() {
23
}
24
25
new_branch() {
26
- echo "fire-$(current_branch)-$(user_email)-$(current_epoch)"
+ echo "fire-${1:-$(current_branch)}-$(user_email)-$(current_epoch)"
27
28
29
fire() {
30
+ initial_branch="$(current_branch)"
31
+
32
git checkout -b "$(new_branch)"
33
34
# cd to git root directory
@@ -47,7 +49,7 @@ fire() {
47
49
done
48
50
51
for sha in $(git rev-list -g stash); do
- git push origin "$sha":refs/heads/stash_"$sha"
52
+ git push origin "$sha":refs/heads/"$(current_branch $initial_branch)"-stash-"$sha"
53
54
55
printf "\n\nLeave building!\n"
0 commit comments