LoginSignup
21
10

More than 1 year has passed since last update.

Github Gist にローカルから push する

Last updated at Posted at 2018-07-26

GistのURLの例

たとえばこのGistを手元で扱いたい。

clone の例

  • Gistに割り振られたハッシュ ( e480986140ef9319ab0d71a87e94bae9 ) を使う
  • ユーザー名は使わない
  • https ではなく git プロトコルを使う

これで push 出来るようになるっぽい。

git clone git@gist.github.com:e480986140ef9319ab0d71a87e94bae9.git

問題

https + ユーザー名付きのままだと、clone は出来ても push が出来なかった。

git clone https://gist.github.com/YumaInaura/e480986140ef9319ab0d71a87e94bae9

Gist のドキュメントにも clone / fork のことは書かれているが、 push については書かれていなかった。

About gists - User Documentation

参考

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

21
10
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
10