0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacでGitHubリポジトリをクローンする際にアクセストークン入力で詰まった件

Posted at

つまずいたところ

GitHubでリモートリポジトリの内容を、ローカル環境にクローン(コピー)する際、ターミナルへ アクセストークンを入力したいのに、ユーザー名とパスワードを求められてしまった。

解決方法

1:ターミナルで、クローンを作りたいディレクトリ(フォルダ)へ移動

$ cd /Users/あなたのユーザー名/Documents/your_project_directory

2:以下の「git clone」コマンドで 実行しました。

$ git clone https://<あなたのGitHubユーザー名>:<作成したアクセストークン>@github.com/ユーザー名/リモートリポジトリ名.git

※注意点※
生成されたアクセストークンは一度しか表示されません。
アクセストークンw「Developer settings」>「Personal access tokens」から制作したら、必ずコピーしておきましょう(自分への戒め)

0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?