Created
August 9, 2020 10:53
-
-
Save SAVE-UP/ae9375fc824f38613da4ed10011561e6 to your computer and use it in GitHub Desktop.
Push .sh code to github
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
#!/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 [email protected]:<USERNAME>/<USERNAME>.github.io.git master | |
# if you are deploying to https://<USERNAME>.github.io/<REPO> Branch | |
git push -f [email protected]:USERNAME/REPO master | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great work!