Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gist: enhance list/update description #5666

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pages/common/gist.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

- Create a private gist with a description:

`gist -p -d "{{A meaningful description}}" {{file.txt}} `
`gist --private --description "{{A meaningful description}}" {{file.txt}} `

- Read contents from stdin and create a gist from it:

`{{echo "hello world"}} | gist`

- List your public and private gists:

`gist -l`
`gist --list`

- List all gists for the currently logged in user:
- List all public gists for any user:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command to list gists for currently logged user is just above :

  • List your public and private gists:

gist -l


`gist -l {{username}}`
`gist --list {{username}}`

- Use the id from the gist URL to modify or include a file:
- Update a gist using the id from URL:

`gist -u {{GIST_ID}} {{file.txt}}`
`gist --update {{GIST_ID}} {{file.txt}}`