{"id":13510257,"url":"https://github.com/mbostock/gistup","last_synced_at":"2025-03-30T15:31:03.109Z","repository":{"id":14609143,"uuid":"17326373","full_name":"mbostock/gistup","owner":"mbostock","description":"Create a gist from terminal, then use git to update it.","archived":true,"fork":false,"pushed_at":"2020-10-23T16:56:15.000Z","size":43,"stargazers_count":486,"open_issues_count":11,"forks_count":32,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-28T23:10:47.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbostock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-01T23:03:37.000Z","updated_at":"2025-01-31T18:29:24.000Z","dependencies_parsed_at":"2022-07-23T11:16:19.228Z","dependency_job_id":null,"html_url":"https://github.com/mbostock/gistup","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbostock%2Fgistup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbostock%2Fgistup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbostock%2Fgistup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbostock%2Fgistup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbostock","download_url":"https://codeload.github.com/mbostock/gistup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246338770,"owners_count":20761435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:01:30.832Z","updated_at":"2025-03-30T15:30:58.096Z","avatar_url":"https://github.com/mbostock.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Git","others","\u003ca name=\"versioning\"\u003e\u003c/a\u003eVersioning"],"sub_categories":["OS X"],"readme":"# Gistup\n\nCreate a gist from the command line! Then just use git to update it.\n\nFor more, read the tutorial: [Let’s Make a Block](http://bost.ocks.org/mike/block/).\n\n## Installation\n\n```bash\nnpm install -g gistup\n```\n\nThe first time you run gistup, you’ll be prompted to create a GitHub *personal access token*. You can revoke the token in the future from your GitHub [developer settings](https://github.com/settings/tokens).\n\n## Usage\n\nTo upload all files in the current directory to your new gist:\n\n```bash\ngistup\n```\n\nIf you just want to create a gist from a single file, try this instead:\n\n```bash\ngistup index.html\n```\n\nIf you specify any options, such as a private gist, you must separate files from options with a double-dash (--) like this:\n\n```bash\ngistup --private -- index.html\n```\n\nIf you want to update your gist later, just use git:\n\n```bash\nedit index.html\ngit commit -m 'Made some awesome changes.'\ngit push\n```\n\nGistup works with binary files, too!\n\nArguments:\n\n* --description, -m - provide an optional description\n* --interactive, -i - request confirmation of every file before adding\n* --exclude, -x - skip files matching pattern; may use wildcards\n* --private, --no-public - make a secret gist\n* --open [url] - specify the URL to open after creating the gist\n* --no-open - don’t open the created gist in your web browser when done\n* --remote - specify the name of the git remote\n* --help - show some help\n* --version - print the current version of gistup\n\nGistup comes bundled with two helper programs: `gistup-rename` and `gistup-open`. Use `gistup-rename \"description of gist\"` to update the description of the gist in the current directory and `gistup-open` to open it for viewing in your default browser.\n\n## Troubleshooting\n\nIf you see the following error:\n\n```\nError: Command failed: Permission denied (publickey).\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights and the repository exists.\n```\n\nYou probably need to [generate your SSH keys](https://help.github.com/articles/generating-ssh-keys) for GitHub. These keys give you permission to git push to your repositories, including Gists.\n\nIf you’re unable to follow the first-time setup to create a personal access token, you can [create a new access token](https://github.com/settings/tokens/new) by hand. The only required permission is \"gist\". You can then create a .gistup.json file in your home directory, with the following contents:\n\n```json\n{\n  \"token\": \"0123456789012345678901234567890123456789\"\n}\n```\n\nReplace the numbers 0123456789… with your access token and save.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbostock%2Fgistup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbostock%2Fgistup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbostock%2Fgistup/lists"}