I have a script on my production server that automates the whole process of checking for new commits, generating the build and posting the new changes.
It works perfectly with open repositories, by running the code:
git clone -b meu-branch http://minha-url-repo.git
The problem is that in private repositories, when you run the command above the terminal always returns a prompt asking for the password to access the repository. What causes the process to stop being automated (since someone would need to type the password).
Is there any way to pass the user and the password next to the git clone
command so that this command is 100% automated?
Note: The user and password used would be readonly for security reasons, and the server is restricted.