{"thread":{"id":"60705","subject":"Credential error - Cache credential helper does not work properly","startedAt":"2024-01-09T13:21:42Z","lastAt":"2024-01-09T16:12:46Z","messageCount":2,"participants":["Lopez Sanchez, Jose Maria","Matthias Aßhauer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"486433","messageId":"FRYP281MB329114171822EE43AF9C8C0DFD6A2@FRYP281MB3291.DEUP281.PROD.OUTLOOK.COM","threadId":"60705","inReplyTo":null,"subject":"Credential error - Cache credential helper does not work properly","fromName":"Lopez Sanchez, Jose Maria","fromEmail":"jose.maria.lopez.sanchez@edag.com","sentAt":"2024-01-09T13:21:39Z","receivedAt":"2024-01-09T13:21:42Z","isPatch":false,"sender":{"key":"jose.maria.lopez.sanchez@edag.com","avatar":null},"body":"Dear Mr. / Ms.\n\nI am José María López Sánchez a senior system engineer working for the EDAG Group company. We are willing to use GIT to start controlling our project versions.\nI have an issue when I want to stop inserting repeatedly my credentials. The cache function is not working somehow.\nI have typed the following:\n\n> C:\\Users\\jl83870\\Desktop\\00_temp\\GIT EAGEL\\eagel-project>git config credential.helper 'cache\n\nThen I introduced once my credentials to store them in cache. If the command worked, the second time that I attempted to pull the remote server, I should not have typed the credentials again to be able to trigger the command.\n\n> C:\\Users\\jl83870\\Desktop\\00_temp\\GIT EAGEL\\eagel-project>git pull origin\n> git credential-'cache get: -c: line 0: unexpected EOF while looking for matching `''\n> git credential-'cache get: -c: line 1: syntax error: unexpected end of file\n> Username for 'https://csp.edag.de': jl83870\n> Password for 'https://jl83870@csp.edag.de':\n> git credential-'cache store: -c: line 0: unexpected EOF while looking for matching `''\n> git credential-'cache store: -c: line 1: syntax error: unexpected end of file\n> Already up to date.\n\nAs I mentioned above, when I want to pull again, appears the same previous code.\n\nI have also tried with the below options:\n-       git config credential.helper cache (without ‘ )\n-       git config credential helper cache --timeout=1800\n-       git config credential.helper ‘cache --timeout=1800’\n-       git config credential.helper ‘cache [--timeout=1800]’\n\nAm I programming something wrong? Could you please help me with it?\n\nMit freundlichen Grüßen / Best regards / Saludos cordiales\ni.A. José María López Sánchez\nSenior Systemingenieur Antriebsstrang / Senior Systems engineer Drivetrain / Ingeniero senior de sistemas de trenes de transmisión\nFahrzeug-Integration / Vehicle Integration / Integración de vehículos\n\nEDAG Engineering Spain, S.L I Reesbergstraße 1 I 36039 Fulda I Germany​\nPhone:  +49 661 6000-83870\nE-Mail:  jose.maria.lopez.sanchez@edag.com I www.edag.com\n\nYOUR GLOBAL MOBILITY​ AND\nINDUSTRY ENGINEERING EXPERTS\nFind us online: LinkedIn I XING I Facebook I Instagram I Twitter I YouTube I TechInsights\n\nEDAG Engineering Spain, S.L, Carretera del Prat, 65, E-08940 Cornellá de Llobregat (Barcelona), Spanien\nEl court register: Registro Mercantil de Barcelona, Tomo 41564, Folio 15, Hoja 92217\n\nPlease consider the environment before printing this e-mail.\n\nThis e-mail may contain confidential and / or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.\n\n________________________________\nDie Pflichtinformationen nach Art. 12 ff. DSGVO erhalten Sie hier<https://www.edag.com/de/rechtliches/datenschutz-teams-e-mail>. / Mandatory information pursuant to Article 12 et seq. GDPR can be found here<https://www.edag.com/en/legal/data-privacy-teams-e-mail>.\n"},{"id":"486440","messageId":"DB9P250MB0692D62AD8AEC9F50A72C733A56A2@DB9P250MB0692.EURP250.PROD.OUTLOOK.COM","threadId":"60705","inReplyTo":"FRYP281MB329114171822EE43AF9C8C0DFD6A2@FRYP281MB3291.DEUP281.PROD.OUTLOOK.COM","subject":"Re: Credential error - Cache credential helper does not work properly","fromName":"Matthias Aßhauer","fromEmail":"mha1993@live.de","sentAt":"2024-01-09T16:12:41Z","receivedAt":"2024-01-09T16:12:46Z","isPatch":false,"sender":{"key":"mha1993@live.de","avatar":"https://avatars.githubusercontent.com/u/6178234?v=4"},"body":"\n\nOn Tue, 9 Jan 2024, Lopez Sanchez, Jose Maria wrote:\n\n> Dear Mr. / Ms.\n>\n> I am José María López Sánchez a senior system engineer working for the EDAG Group company. We are willing to use GIT to start controlling our project versions.\n> I have an issue when I want to stop inserting repeatedly my credentials. The cache function is not working somehow.\n> I have typed the following:\n>\n>> C:\\Users\\jl83870\\Desktop\\00_temp\\GIT EAGEL\\eagel-project>git config credential.helper 'cache\n\nLooks like you're running this on Windows, so you're probably using Git \nfor Windows, where this helper will error out with the message \"fatal: \ncredential-cache unavailable; no unix socket support\", even when \notherwise configured correctly [1]. If you compiled your own git (2.34.0 \nor newer) without NO_UNIX_SOCKETS this helper should work on Windows 10 \nbuild  17063 and newer [2][3]. You seem to be running this in CMD \nor maybe powershell. Different quoting rules apply for the two, but the \nleading \"'\" before the \"cache\" is definitely wrong without a trailing\ncounterpart.\n\n[1] https://github.com/git-for-windows/git/issues/3892\n[2] https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/\n[3] https://github.com/git/git/commit/bb390b1f49406d967e8bf3401337cf1d9535f820\n\n>\n> Then I introduced once my credentials to store them in cache. If the command worked, the second time that I attempted to pull the remote server, I should not have typed the credentials again to be able to trigger the command.\n>\n>> C:\\Users\\jl83870\\Desktop\\00_temp\\GIT EAGEL\\eagel-project>git pull origin\n>> git credential-'cache get: -c: line 0: unexpected EOF while looking for matching `''\n>> git credential-'cache get: -c: line 1: syntax error: unexpected end of file\n>> Username for 'https://csp.edag.de': jl83870\n>> Password for 'https://jl83870@csp.edag.de':\n>> git credential-'cache store: -c: line 0: unexpected EOF while looking for matching `''\n>> git credential-'cache store: -c: line 1: syntax error: unexpected end of file\n>> Already up to date.\n\nThe superfluous \"'\" made it into the config file and is causing these \nerror messages.\n\n> As I mentioned above, when I want to pull again, appears the same previous code.\n>\n> I have also tried with the below options:\n> -       git config credential.helper cache (without ‘ )\n> -       git config credential helper cache --timeout=1800\n> -       git config credential.helper ‘cache --timeout=1800’\n> -       git config credential.helper ‘cache [--timeout=1800]’\n\nI assume the \"‘\" and \"‘\" are supposed to be \"'\" and your MUA mangled them \na little. Otherwise that's definitely part of the problem.\nIf you're on CMD you want either\n> git config credential.helper cache\nor \n> git config credential.helper \"cache --timeout=1800\"\n\nIf you're on powershell\n> git config credential.helper 'cache --timeout=1800'\nshould also work.\n\nDo note that the Git documentation assumes a POSIX shell when it gives \nexamples of commands.\n\nBest regards\n\nMatthias\n\n> Am I programming something wrong? Could you please help me with it?\n>\n> Mit freundlichen Grüßen / Best regards / Saludos cordiales\n> i.A. José María López Sánchez\n> Senior Systemingenieur Antriebsstrang / Senior Systems engineer Drivetrain / Ingeniero senior de sistemas de trenes de transmisión\n> Fahrzeug-Integration / Vehicle Integration / Integración de vehículos\n>\n> EDAG Engineering Spain, S.L I Reesbergstraße 1 I 36039 Fulda I Germany​\n> Phone:  +49 661 6000-83870\n> E-Mail:  jose.maria.lopez.sanchez@edag.com I www.edag.com\n>\n> YOUR GLOBAL MOBILITY​ AND\n> INDUSTRY ENGINEERING EXPERTS\n> Find us online: LinkedIn I XING I Facebook I Instagram I Twitter I YouTube I TechInsights\n>\n> EDAG Engineering Spain, S.L, Carretera del Prat, 65, E-08940 Cornellá de Llobregat (Barcelona), Spanien\n> El court register: Registro Mercantil de Barcelona, Tomo 41564, Folio 15, Hoja 92217\n>\n> Please consider the environment before printing this e-mail.\n>\n> This e-mail may contain confidential and / or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.\n>\n> ________________________________\n> Die Pflichtinformationen nach Art. 12 ff. DSGVO erhalten Sie hier<https://www.edag.com/de/rechtliches/datenschutz-teams-e-mail>. / Mandatory information pursuant to Article 12 et seq. GDPR can be found here<https://www.edag.com/en/legal/data-privacy-teams-e-mail>.\n>\n"}]}