Skip to content

Instantly share code, notes, and snippets.

@patterns
Last active April 5, 2017 05:00
Show Gist options
  • Save patterns/48e0d0955da16e19d4adeefed0e5aa19 to your computer and use it in GitHub Desktop.
Save patterns/48e0d0955da16e19d4adeefed0e5aa19 to your computer and use it in GitHub Desktop.
Typical Git workflow for Github pages.
#!/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