Hi Ankit,
I try to git clone with go user.
It asked password! So you were right, there is no credential stored.
What i tried ?
Attempt 1 - Fail
1. I tried to type git config credential.helper store
2. Then i cloned repo
3. Git asked username and password
4. I browse into the git directory
5. I run git pull then password not needed
6. Then i remove the repo folder
7. I tried to clone it again
8. It asked username and password again
Attempt 2 - Succeed!
1. I run : git --global config credential.helper 'cache --timeout 3600'
2. I clone repo with git and type username and password
3. I removed the repo folder
4. I cloned it again and git did not ask the username and password
5. Then i run GoCd pipline for my ubuntu agent
6. It worked succesfully
Now the question is, how to store credentials permanently ?
@Ankit thank you very much, problem partially fixed by your instructions; thanks.