I tried to clone the git repository by passing username, password. It was a success.
But my intention is that I want to know if the clone git command is executed or not. If not, I would like to handle such errors in the shell script itself.
My working shell script:
cd .. git clone https://username: password@bitbucket.org /username/repositoryname.git cd repositoryname git checkout branchname1 cd .. mv repositoryname newfoldername git clone https://username: password@bitbucket.org /username/respositoryname.git cd repositoryname git checkout branchname2 cd .. mv repositoryname newfoldername
How to check in a script if these steps were successful?
source share