I have installed third party module with composer and we are managing code with Git.Since Module is installed with composer so it is going to Magento Vendor Folder.In git we are ignoring Vendor Folder.Hence this module is not tracked in Git while running git status.I am able to see modified in two files
"modified: composer.json
modified: composer.lock
"
My question is how I can install this module on server?Should I add and commit both modified files in git and run command composer update(but it will update whole magento) Or should I track that module in vendor folder in .gitignore file?
Please suggest me your thoughts.
Thanks.