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 bab60d3 commit dc14c06Copy full SHA for dc14c06
src/current/Makefile
@@ -103,3 +103,19 @@ clean-site:
103
104
clean-cache:
105
rm -rf .jekyll-cache
106
+
107
+.PHONY: git-retry
108
+git-retry:
109
+ @echo "This will replace the last commit on the remote branch with an identical one,"
110
+ @echo "except for its timestamp and SHA, to kick off a new preview build."
111
+ @read -p "Proceed? (y/N): " confirm && \
112
+ if [ "$$confirm" = "y" ] || [ "$$confirm" = "Y" ]; then \
113
+ BRANCH=$$(git rev-parse --abbrev-ref HEAD); \
114
+ echo "Working on branch: $$BRANCH"; \
115
+ git pull && \
116
+ git commit --amend --no-edit --allow-empty && \
117
+ git push --force origin $$BRANCH && \
118
+ echo "✓ Successfully pushed amended commit to $$BRANCH"; \
119
+ else \
120
+ echo "Aborted."; \
121
+ fi
0 commit comments