gitのprivate ripositoryからcloneする
https
% git clone https://github.com/xxxx/xxxx.git
Cloning into 'xxxx'...
Username for 'https://github.com': "githubのサイトからPersonal access tokensコピペ"
Password for 'https://xxxx@github.com':
いつも一瞬忘れるので。
これ登録した後に会社のprivate repositoryからパッケージ取ってくるUnityプロジェクト立ち上げるとエラー。Packages/manifest.jsonの中身よくみるとsshでした。
SSH
パスフレーズは空欄でもOK。公開鍵と秘密鍵が~/.ssh/id_rsa.pub に作られる。
そのあとはGithubのSettings/SSH and GPG keysからSSH公開鍵(.pub)の中身をコピペして登録すればおk
The type or namespace name 'UI' does not exist in the namespace 'UnityEngine'
その後Unityプロジェクト開くとこのエラーが出て焦った。Libraryフォルダを消してプロジェクト再起動すると治った。自分のプロジェクトpullするだけでこの苦労である。