Need to execute git clone command from shell script
I tried to use the git clone command and it is working
I am able to execute the below command from the git-bash console to checkout the developer1_branch from my project
git clone --branch developer1_branch https://project_ip/project.git /tmp/$(date +%Y%m%d)
This command will ask for credentials and it will clone the project to /tmp folder with today's date.
Expected results:
- Need to run the same command from the shell script.
- To automate the script to read the credentials from a creds.properties file which will have user=userid & password=Password123 as properties? Please let me know how this can be achieved?