Skip to content

UPM install a package from git

let’s take this package.json
with this github URL https://github.com/garettbass/UnityExtensions.SelectionHistory

to install this package in unity.

  • open the Package Manager
  • click the Plus at the top left
  • add package from GIT url (and add .git to the url)
  • click install

Error

The error package ... name is invalid will prevent a successful package install.
Append .git to the git url to fix this.
```
[Package Manager Window] Error adding package: https://github.com/garettbass/UnityExtensions.SelectionHistory.

Unable to add package [https://github.com/garettbass/UnityExtensions.SelectionHistory]:
Package name ‘https://github.com/garettbass/UnityExtensions.SelectionHistory’ is invalid.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

```

official docs on adding package from git