-
Notifications
You must be signed in to change notification settings - Fork 19
Working with Unity Packages on GIT
marc-n-dream edited this page Jul 28, 2025
·
1 revision
In your terminal
application, execute the following steps:
- If you do not have an SSH key yet
ssh-keygen -t rsa -b 4096 -C "[email protected])"
- Copy the public key
cat ~/.ssh/id_rsa.pub | pbcopy
-> It is now in your copy - paste buffer - Add this as a new key into your GIT providers SSH Key management page. For example for Bitbucket Cloud: https://bitbucket.org/account/settings/ssh-keys/
- Because ssh keys are password protected, you need to configure SSH to automatically resolve the password from the keychain:
- open
~/.ssh/config
usingvim ~/.ssh/config
for example - Add the following lines to the end of the file:
- open
Host bitbucket.org
UseKeychain yes # macOS only, optional
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
- Execute the following to configure ssh to use your keychain to provide the ssh password:
ssh-add --apple-use-keychain ~/.ssh/id_rsa
If you open Unity now, it should automatically be able to resolve the git based packages starting with git@...