A better solution would be to use a build tool such as Maven, which can resolve your missing dependency libraries. However, if there are not many libraries in your project, you can leave them in the git repository and track them, I have several projects in which I have lib in the repository, and this is a convenient solution, because I can restore, for example, if will require an older version of the library. Therefore, the best way to manage your libraries depends on the situation, if you do not have many libraries, you can track them in the repository, otherwise it is better to use Maven.
source share