GIST(1) Gist GIST(1) (NAME) gist - Gist (SYNOPSIS) gist gist https://gist.github.com . (INSTALLATION) o (Ruby) : gem install gist o Bundler : source :rubygems gem 'gist' o OS X gist Homebrew : brew install gist o FreeBSD gist ports : pkg install gist o : apt install gist : gist-paste . (COMMAND) o a.rb : gist a.rb o : gist a b c gist *.rb o (STDIN) -f : gist -f test.rb (Clipboard) : gist -P o -p Gist: gist -p a.rb o -d : gist -d "Random rbx bug" a.rb o Gist -u : gist -u GIST_ID FILE_NAME gist -u 42f2c239d2eb57299408 test.txt o (URL) -c : gist -c (Embeddable) -e : gist -e -o : gist -o Gist (Gist Gist ): gist -l : all gists for authed user gist -l defunkt : list defunkt's public gists Gist (STDOUT): gist -r GIST_ID gist -r 374130 o gist --help . (LOGIN) gist . : 1. OAuth (Device-code flow) . github.com OAuth GIST_CLIENT_ID (client id) GitHub Enterprise . 2. (). GitHub Enterprise GIST_USE_USERNAME_AND_PASSWORD github.com . (Device-code flow) . . gist --login Requesting login parameters... Please sign in at https://github.com/login/device and enter code: XXXX-XXXX Success! https://github.com/settings/connections/applications/4f7ec0d4eab38e74384e (access_token) ~/.gist Gist . https://github.com/settings/connections/applications/4f7ec0d4eab38e74384e . (Username-password flow) (2FA) <> ( ). GitHub Enterprise . gist --login Obtaining OAuth2 access_token from GitHub. GitHub username: ConradIrwin GitHub password: 2-factor auth code: Success! https://github.com/settings/tokens ~/.gist . https://github.com/settings/tokens . (Password-less login) (scope) gist ( user:email GitHub Enterprise) ~/.gist . https://github.com/settings/tokens . ( ) (\n \r\n) . : (umask 0077 && echo MY_SECRET_TOKEN > ~/.gist) umask . (GitHub Enterprise) gist GitHub Enterprise https://enterprise.github.com GITHUB_URL (export) ( ~/.bashrc ). export GITHUB_URL=http://github.internal.example.com/ ( source ~/.bashrc) gist github.com GitHub Enterprise . GitHub Enterprise ~/.gist .gist..[.] ( ~/.gist.http.github.internal.example.com GITHUB_URL ) . gist . . unset GITHUB_URL . (Token file format) ( Enterprise) . : $ gist -l Error: Bad credentials Gist (Ruby) : : o :access_token OAuth2 ( `File.read("~/.gist")) ). o :filename (Syntax Highlighting) ( a.rb ). o :public Gist () . o :description Gist . o :update Gist ( URL ). o :copy ( false ). o :open ( false ). : access_token (scope) gist user:email . o Gist : Gist.multi_gist("a.rb" => "Foo.bar", "a.py" => "Foo.bar") o access_token gist : Gist.login! o OAuth2 ~/.gist Gist.gist . (CONFIGURATION) o -o -c gist (alias) ~/.bashrc ( ) . : alias gist='gist -c' o gist BROWSER : export BROWSER=google-chrome Pull Request . HTTP HTTP_PROXY http_proxy (export) gist . (AUTHORS) @defunkt @indirect . @rking @ConradIrwin . MIT . Pull Request . July 2026 GIST(1)