TOP ▲ itcore TOPTIPSgithub_add.php  タグ:git github

githubへの登録 | itcore 2021年

githubにリポジトリを作成する。
https://github.com/
サインイン
プライベートでリポジトリ作成

公開鍵作成
ssh-keygen
全てエンター
cat ~/.ssh/id_rsa.pub

公開鍵登録
github setting(アカウント設定)
SSHおよびGPGキー
新しいSSHキー
公開鍵を登録する。

リモート設定&push
cd gitディレクトリ
git config --global user.name "xxx"
git config --global user.email xxx@xxx.xxx
git remote add origin git@github.com:xxx/xxx.git
git push -u origin HEAD