LoginSignup
77
61

More than 1 year has passed since last update.

GitHubのプライベートリポジトリをgit clone

Last updated at Posted at 2017-05-15

@hnakai0909 さんのコメントにある通り 2021年8月13日以降、ここに記載している方法は無効になりました。ご指摘ありがとうございます。対応方法は、コメントおよびそのリンクから到達できます。

プライベートリポジトリを、SSH鍵などを用意せず、コマンドラインだけで git clone する。

git clone https://{ユーザ名}@github.com/foo/bar.git

GItHubのパスワードを求められるので入力する。おしまい。

いったんcloneした後は、普通に git pull とかすれば、パスワードを求められるので入力すればOK。

とても実用的なコメントをいただいているので、コメントもご覧ください。

77
61
8

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
77
61