Skip to content

Instantly share code, notes, and snippets.

@daqi
Created June 24, 2019 08:49
Show Gist options
  • Save daqi/9dfae89f5593e12dcecbf6e28884b9f4 to your computer and use it in GitHub Desktop.
Save daqi/9dfae89f5593e12dcecbf6e28884b9f4 to your computer and use it in GitHub Desktop.
gh-pages cli help
  -V, --version            output the version number
  -d, --dist <dist>        Base directory for all source files
  -s, --src <src>          Pattern used to select which files to publish (default: "**/*")
  -b, --branch <branch>    Name of the branch you are pushing to (default: "gh-pages")
  -e, --dest <dest>        Target directory within the destination branch (relative to the root) (default: ".")
  -a, --add                Only add, and never remove existing files
  -x, --silent             Do not output the repository url
  -m, --message <message>  commit message (default: "Updates")
  -g, --tag <tag>          add tag to commit
  -t, --dotfiles           Include dotfiles
  -r, --repo <repo>        URL of the repository you are pushing to
  -p, --depth <depth>      depth for clone (default: 1)
  -o, --remote <name>      The name of the remote (default: "origin")
  -u, --user <address>     The name and email of the user (defaults to the git config).  Format is "Your Name <email@example.com>".
  -v, --remove <pattern>   Remove files that match the given pattern (ignored if used together with --add). (default: ".")
  -n, --no-push            Commit only (with no push)
  -h, --help               output usage information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment