Last active
April 5, 2017 05:00
-
-
Save patterns/48e0d0955da16e19d4adeefed0e5aa19 to your computer and use it in GitHub Desktop.
Typical Git workflow for Github pages.
This file contains 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 | |
# initial email config | |
git config --global --edit | |
# per commit modify name | |
git commit --amend --author="patterns <>" | |
# sync overwriting local branch | |
git fetch --all | |
git reset --hard origin/gh-pages | |
# typical github pages steps | |
git add --all | |
git commit --author="興怡 <>" -m "helpful txt" | |
# see details before push | |
git log --branches --not --remotes | |
git push -f origin gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment