Skip to content

Instantly share code, notes, and snippets.

@SAVE-UP
Created August 9, 2020 10:53
Show Gist options
  • Save SAVE-UP/ae9375fc824f38613da4ed10011561e6 to your computer and use it in GitHub Desktop.
Save SAVE-UP/ae9375fc824f38613da4ed10011561e6 to your computer and use it in GitHub Desktop.
Push .sh code to github
#!/usr/bin/env sh
# abort on errors
set -e
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
#Use this only one time
#git init
git add -A
# Change the commit message before execute
git commit -m 'Adding .gitignore'
# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO> Branch
git push -f git@github.com:USERNAME/REPO master
cd -
@devnullone
Copy link

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment