GitとGitHub導入時に使用するコマンド
- 投稿者: yoshitakakai
- 作成日: 2024年12月16日15:42
- 更新日: 2024年12月16日15:47
- カテゴリ: Git
- タグ: GitHub,
$ brew upgrade git #アップデートする場合に実行
#Gitで利用する名前とメールアドレスを設定
$ git config —global user.name "xxxxx xxxxxxx"
$ git config —global user.email "xxxxxxxxxxx@example.com"
$ ssh-keygen -t rsa -C "xxxxxxxxxxx@example.com" #SSH Keyの作成
$ cat ~/.ssh/id_rsa.pub #公開鍵の登録 内容をGitHubのSSH Keyとして貼り付ける
$ ssh -T git@github.com #動作確認 (yesを入力)
$ git clone git@github.com:xxxxxxxx/xxxx-xxxx.git GitHubリポジトリをクローン