You can import git libraries from git in the project libraries. Code - Libraries ( in the project) then select git and add the details of your git repo. If this is private repo you will need to add the SSH Key to the permit access to the repo.
Another option is your git repo was created so it can be pip installed you can add to a code env git+https://...git in the packages to install of your code env. This does mean you need to rebuild the code env to receive updates in the git repo.