on ‎2020 Apr 01 7:29 PM
Hi,
I'm experiencing some issues with the SAP Git repository. I'm using Gitforwindows (last version) and a standard account (not trial). My goal is to clone the repo on my computer (windows 10). I'm administrator of this Neo account.
While executing
git clone http://git.eu2.hana.ondemand.com/____
and I get an error "Authentication failed for 'https://git.eu2.hana.ondemand.com/___/___/' "
The same procedure IS successful with the neo Trial account.
Any suggestions is welcome!
Yann
Request clarification before answering.
Hi yannmiquel,
If you are trying to clone an html5 repo, copy the URL from the versioning session of the application and perform a clone from there. Git client should ask you for your cloud account credentials. If it is not asking, then there should be somewhere in your git client a cached credential for that URL. If it is asking for your credentials in a pop-up window, then your user might need some additional authorization in that particular sub-account.
The platform role "Developer" has the required authorizations - namely: readGit and accessGit. On the other hand and "Administrator" role has an additional manageGit - which allows you to create additional git repositories under the Git Service in Neo.
I assume that if it is an HTML5 application deployed, then you need to checkout the wanted version according to the app version. You have to do this for example, once you've cloned:
git checkout tags/1.0.0Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ivan.mirisola ,
Thank you for your answer. I'm still stuck but it's nice to know about the app version.
Any additional suggestion ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yannmiquel,
Do you have any output from the command line below:
cmdkey /list git:https://git.eu2.hana.ondemand.com
If so, your git client is using the Windows Credential Manager to cache credentials for that resource. Probably you have changed your password on SAP ID Service and Windows still has the old one cached.
Probably removing the stored credential should solve your issue:
cmdkey /delete git:https://git.eu2.hana.ondemand.com
If your git client isn't using the Windows Credential Manager (and I suspect it isn't due to the OpenSSH popup) I believe you have to figure out how your client works in that sense.
Some git clients will manage it internally and you can remove it by issuing the following command.
git config --global --unset credential.helper
git config --system --unset credential.helper
To use the Windows Credential Manager you could do this:
git config --global credential.helper manager
Some will store credentials on the user's home under a file named ".git-credentials" and removing the file should fix the issue.
I'm using git version 2.24.0.windows.2 that I've downloaded from https://git-scm.com/download/win
Best regards,
Ivan
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.