Files
tldr/pages.uk/common/gist.md

33 lines
1016 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# gist
> Завантажує код у https://gist.github.com.
> Більше інформації: <https://github.com/defunkt/gist>.
- Увійти в gist на цьому комп'ютері:
`gist --login`
- Створити gist з будь-якої кількості текстових файлів:
`gist {{ім'я_файлу.txt}} {{ім'я_файлу2.txt}}`
- Створити приватний gist з описом:
`gist --private --description "{{Змістовний опис}}" {{ім'я_файлу.txt}} `
- Прочитати контент з stdin і створити gist з цього:
`{{echo "привіт світ"}} | gist`
- Перелічити свої публічні та приватні gist:
`gist --list`
- Перелічити всі публічні gist будь-якого користувача:
`gist --list {{ім'я_користувача}}`
- Оновити gist за допомогою ID з URL:
`gist --update {{GIST_ID}} {{ім'я_файлу.txt}}`