tldr/pages.uk/common/gist.md

33 lines
1016 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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}}`