Hi,
I am cloning the stash repository using Bamboo and then adding one file , committing it to push. I am not able to push the code to remote repository where as it is pushing to local repository only.
| | \Apps\Atlassian\Data\Bamboo\xml-data\build-dir\IRIS-IRGIT-JOB1>D:\GIT\Git\cmd\git.exe push origin develop |
| 23-Jan-2017 15:27:59 | To file://D:\Apps\Atlassian\Data\Bamboo\xml-data\build-dir\_git-repositories-cache\7f363ec58eaf0b8a31de372c238909c1f8510801 |
| 23-Jan-2017 15:27:59 | eeca324..fecb2d3 develop -> develop |
Here is the code that I have in script job
echo "create the file"
echo "${bamboo.version}.${bamboo.major}.${bamboo.minor}" >> file1.txt
\GIT\Git\cmd\git.exe add file1.txt
\GIT\Git\cmd\git.exe commit -m "adding a file"
\GIT\Git\cmd\git.exe remote add origin ssh://git@gitserver:7999/test/test_src.git
\GIT\Git\cmd\git.exe push origin develop
Can any one please guide me how I can push that to remote repo.
Thanks for help in advance.