From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Issues With Trying To Use Magit Mode For GitHub Repos Via SSH Key Date: Wed, 29 Dec 2021 12:23:38 -0500 Message-ID: <5d4776dd-2e6a-47c7-82db-2cf3c4d46324@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36250"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 18:24:31 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2cgh-0009Dj-8R for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 18:24:31 +0100 Original-Received: from localhost ([::1]:46640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2cgf-00082h-DG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 12:24:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2cgE-00082V-2Q for help-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:24:02 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2cgC-0002hg-2o for help-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:24:01 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5AE545C0134 for ; Wed, 29 Dec 2021 12:23:59 -0500 (EST) Original-Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Wed, 29 Dec 2021 12:23:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=hLld/HFPz1/UWDZmwpAgNlakmp+haCbkFMSiOok/jBY=; b=L5nb8Rqb LkuvFSU4hXveVOlF6JizKrsJ8g8IHJ/IXZ2q2LB/j8SeFJBDXa10yLuwtMz6v4wK 65Qb/sBOjQdXqYrTc++jRXQFzfypFpeCO8e6pqIvj/LomHjhjQyU08WnGg4+t+G9 Uf7UkFgmTcAZ8jNEh1UfXrPEirrf5ldlbO2cnOM8/FSBFK3QtDo5ntBGM74qw2mA VqjwkiGqLoECdxnhJo11zngcYZIChNk4aPR/NEc79/34ySmAmt2LUzVz78Yew3am iCWF+zZkbNv4yLRIfAIaovQqDqL4zT/QY3NkERoCjMUpLFnrZuDS4WFYKxuI8B2s Xk1EoHJRkZGG7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=hLld/HFPz1/UWDZmwpAgNlakmp+ha CbkFMSiOok/jBY=; b=cbg8TIXofXtCRKB/mFship4sSOw4sNOVKUB7f4oKDKPlr 14JpixBpxls7FZ6UUPxHF1bqYbStWLwD3XiWfQsN87IfK9MTqUKe9zk4P5upeFTr UMJTRt2A1Dr3OCGhDB3y1jXyR7bbXVB8niIwJJUewb2kWeaHf4eKMwfFWCIdgFai G05DDf8HYJYLoJrfDhEh/Bkv71DpnkrQUV5ZrUEIleJN8P/qY53DMJP8F7fUhnby jfR84PDq+e5gBGOQfYsqTMFAR5gusRg5fZ29UfbXHy7HcPnBeDPPz1LR8qSaXo7e oPdhP4gu9MsK7kGuJsLJMtoo9Ep+wrF14DfRXQAVA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvuddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdfurghmuhgvlhcuuegrnhihrgdfuceoshgsrghnhigrsehf rghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepteevgffggeekteehueekhe euueefheefkeeggfelfeetgfeigeekieduiefffeejnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepshgsrghnhigrsehfrghsthhmrghilhdrtg homh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1BE72F60074; Wed, 29 Dec 2021 12:23:58 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=66.111.4.25; envelope-from=sbanya@fastmail.com; helo=out1-smtp.messagingengine.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135072 Archived-At: Hey there, I'm trying to move all my personal Git repos back to GitHub. I am having a difficult time doing so since I'm getting some weird side effects of either Git or Magit Mode acting weird. Here's what I did: - I made a single repo on my GitHub that's blank - I then cloned the repo locally on my machine - I then added the contents of the older repo (minus the '.git' directory) to the the cloned directory - I then added all of the new folders and files to that particular repo via 'Magit' mode in Emacs - I then attempted to push a commit to that new GitHub repo - I was then prompted for a 'Username' and 'Password', which kept defaulting to using '@github.com' --> example: I would put 'Tom' --> it would change to 'tom@github.com' for the username. This even occurred even if I used the email I have for my GitHub account, 'tom@mail.com' --> 'tom@mail.com@github.com' - I did some research and apparently GitHub changed their authentication methods to force either a Personal Access Token or through an SSH key - So, I simply added my SSH key to my GitHub account, specifically the 'public' key (id_rsa.pub) - However I'm getting the same weird results as above I believe I have to modify the .git/config'* *file so that the 'url' is changed accordingly. However, I'm a bit confused on actually WHAT to put in there. Here's an example (not the actual line I used): url = ssh://git@github.com:Tom/example.git Also, I have this present in my ~/.ssh/config file as well: Host github.com IdentitiesOnly yes IdentityFile ~/.ssh/id_rsa.pub Any ideas on what I did wrong? The only thing I can think of is that I made a blank GitHub repo to begin with, so my workflow is probably messed up as a result. Any reference links would be cool too since I haven't used GitHub in ages in comparison so I have no idea how to approach this. Just wanted to push my git repos to GitHub quickly. Thanks, Sam