Skip to content

Instantly share code, notes, and snippets.

@TakesxiSximada
Created October 19, 2016 12:05
Show Gist options
  • Save TakesxiSximada/d73c5209fd88bc20e5c579eb953a015d to your computer and use it in GitHub Desktop.
Save TakesxiSximada/d73c5209fd88bc20e5c579eb953a015d to your computer and use it in GitHub Desktop.
テストだよー

python-gistを使ってgistを管理する

作成

1ファイルの作成

ファイルを指定するとgistが作成され、そのURLが標準出力に表示されます。

$ gist create "テストだよー" --public README.md
https://gist.github.com/c4c6ee198a1c576220a144ab825fa2f0

複数ファイルの作成

ファイルを複数指定すると複数ファイルで構成されたgistが作成されます。

$ gist create "テストだよー" --public README.md other.txt
https://gist.github.com/937cfca20a0c52db4c815eb50a5fd81b

ファイル指定を省略するとエディターが起動する

$ gist create "テストだよー" --public
https://gist.github.com/d05b95c6033606b8bf6b7066c92502c9

起動したエディタで文面を記述して保存するとgistが保存されます。

更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment