Last active
March 13, 2023 10:57
-
-
Save Bachsau/8d28aa3e02034090b382673e8125a883 to your computer and use it in GitHub Desktop.
The simplest of Git deployment scripts: Just ping it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
while read -r discard; do :; done; unset -v discard | |
echo 'Content-Type: text/plain; charset=UTF-8' | |
echo 'Cache-Control: no-store, max-age=0' | |
echo | |
git fetch -q github main | |
git reset --hard github/main | |
git clean -d -e '/deploy.cgi' -x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
repositoryformatversion = 0 | |
filemode = false | |
bare = false | |
logallrefupdates = false | |
[remote "github"] | |
url = https://github.example/YoMama/Fat.git | |
fetch = +refs/heads/*:refs/remotes/github/* | |
[clean] | |
requireForce = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm actually using a more cryptic file name so people can't hammer it.