Git インストール
choco install git -y —ignore-checksums
グローバル設定
Section titled “グローバル設定”git config —global user.name “Sakurai Yuki” git config —global user.email “sakurai.yuki@nck.co.jp” git config —global core.quotepath false #日本語ファイル名がエスケープされないように
ssh-keygen -t rsa -b 4096 -C “sakurai.yuki@nck.co.jp”
配下に id_rsa と id_rsa.pub が作成れる C:\Users\n0166/.ssh/id_rsa
同階層にconfigファイルを作成する。
Host githubHostName github.comIdentityFile ~/.ssh/github/id_rsaUser git鍵を github に登録
接続確認 ssh -T github
git clone github:nichicom/geats.git git clone github:nichicom/dementia-defender-admin git clone github:nichicom/adachi-docs
トラブルシューティング
Section titled “トラブルシューティング”error: invalid path というエラーが表示される場合がある。 以下のコマンドを入力すれば回避できる。
git config —global core.protectNTFS false