DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51AFaEm9005523 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51AFaEm9005523 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=OTATlVRj X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27EE33857C5D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1739201772; bh=clSj3OwBXonTf+UPa2A4gbKpUgSPQERh8P2ymrWoeqY=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=OTATlVRj0SeVlIKZDrvPpQ0TZD69334k2cl7WFRTT0doVWC8Dua+A+y2eZUVHiUm6 S4nyE1PhGLSzia2pM645oiq+3D+jc1DBjNbS0lrdZjqWr+tZ1XrylPWDFxI1NTzvHx gj6TYJUer5SBSJAV5Nmyrru4jabXGSKRbFt65A3M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A2B9C3858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A2B9C3858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739201706; cv=none; b=ZYbCjM0iUfdc09/rJEoHhWV7+6lZNmdbCs+eF9Vc+3N6h2QusYJiXam6tiWI0DBcdsMNq7imXClaKwCgmRU9hAaV7sw9oFGVJr9qZr9BzwxgDGIjNnSSb7YMIq3GGqOqjgG49b3zem64paPFXtsNPt/gQATz9YInM9Il3Am/rQc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739201706; c=relaxed/simple; bh=87iiGDjDlXiSwp5Q+6JL6OT4mqPJxupZybiQopYF24g=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=eVG5Ek4m0rtVvex3OE27hjNscVLw5Xt+hZKBqV8MSuyiA1mzUpyVYxgn9EdE0Y2HceYT92w8vJg4tXOkFU8JdF3EjrTBDRZcIWjwY4zH0T3ukoq9GXJbPiapMH/1KLYCUIGwrOqLlFiRCKWhv2/3u3SCy9ruwe95m83DVDxttzc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2B9C3858D21 X-Yandex-Fwd: 1 Date: Mon, 10 Feb 2025 18:31:48 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <484150013.20250210183148@yandex.ru> To: "KARR, DAVID" , cygwin AT cygwin DOT com Subject: Re: Cloning enterprise github repo with cygwin git tries to use username/password auth, have to use Windows git In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, KARR, DAVID! > I'm now trying to connect to our new enterprise Github repositories. I > have created a PAT in Github. I've verified that it works by testing it with > some code using the github rest api. Until now, I haven't attempted a clone > from the new repositories or pushing to them. When I attempt the clone > using Cygwin git, it prompts me for a username and password, which I'm > unable to supply. If I instead do the clone using Windows Git, it just does > it. It's not clear to me whether it's even using the PAT under the covers. > I'm not sure how that works. Username is your GitHub account name. Password is your private auth token. To make HTTP git connection (any HTTP git kind) easier, change remote address to https://@host/path.git Then it will reuse your auth name and only ask you for a password. To make it EVEN easier, install GCM (it comes prepackaged with GfW). https://github.com/git-ecosystem/git-credential-manager/releases/latest Download, unpack to temp. directory, rename NOTICE to NOTICE.gcm.txt (recommended), then move the files to /usr/libexec/git-core/. Run git config --global credential.helper manager git config --global credential.modalPrompt true -- With best regards, Andrey Repin Monday, February 10, 2025 18:22:08 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple