Skip to content

Instantly share code, notes, and snippets.

@daqi
Created June 24, 2019 08:49
Show Gist options
  • Select an option

  • Save daqi/9dfae89f5593e12dcecbf6e28884b9f4 to your computer and use it in GitHub Desktop.

Select an option

Save daqi/9dfae89f5593e12dcecbf6e28884b9f4 to your computer and use it in GitHub Desktop.

Revisions

  1. daqi created this gist Jun 24, 2019.
    19 changes: 19 additions & 0 deletions gh-pages-cli.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    ```
    -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 protected]>".
    -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
    ```