Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GIT problem

67 views
Skip to first unread message

William Torrez Corea

unread,
May 9, 2023, 11:50:06 PM5/9/23
to
Command:

git push master origin

I want upload my change to branch MAIN but when i want upload my change i get the following error:

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Villelmo/Beginning_Perl.git/'

My changes are uploaded to branch MASTER.
--

With kindest regards, William.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀


Tim Woodall

unread,
May 10, 2023, 12:50:06 AM5/10/23
to
On Tue, 9 May 2023, William Torrez Corea wrote:

> Command:
>
> git push master origin
>>

shouldn't that be git push origin master? Or even origin main?
>
> I want upload my change to branch MAIN but when i want upload my change i
> get the following error:
>
> remote: Support for password authentication was removed on August 13, 2021.
>> remote: Please see
>> https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
>> for information on currently recommended modes of authentication.
>> fatal: Authentication failed for '
>> https://github.com/Villelmo/Beginning_Perl.git/'
>>

You need to do what it says.

>
> *My changes are uploaded to branch MASTER. *
>
Not sure what this means. You previously sasid the push was rejected.

to...@tuxteam.de

unread,
May 10, 2023, 1:00:05 AM5/10/23
to
On Tue, May 09, 2023 at 09:47:45PM -0600, William Torrez Corea wrote:
> Command:
>
> git push master origin
> >
>
> I want upload my change to branch MAIN but when i want upload my change i
> get the following error:
>
> remote: Support for password authentication was removed on August 13, 2021.
> > remote: Please see
> > https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
> > for information on currently recommended modes of authentication.
> > fatal: Authentication failed for '
> > https://github.com/Villelmo/Beginning_Perl.git/'

I am not touching github even with aseptic gloves, so I'm not going
to read what they say, but the error message is pretty clear.

To upload ("push", in git parlance), you need to authenticate to
origin (somewhere at github in your case). Up to now, you have been
using https with password for that -- they disabled that method
because they consider it insecure. So you will have to change
accordingly.

The relevant commands on your side are along the lines of

# this removes your disfunctional remote called 'origin'
git remote remove origin
# this re-adds it
git remote add origin <new URL>

BE CAREFUL: find out what <new URL> is BEFORE you do the remove. Your
<new URL> might be something like "git:g...@github.com:your/repo/path"
or similar, depending on the instructions at github.

I won't read them -- github gives me skin rashes.

Cheers & good luck.
--
t
signature.asc

Henning Follmann

unread,
May 10, 2023, 7:40:05 AM5/10/23
to
On Tue, May 09, 2023 at 09:47:45PM -0600, William Torrez Corea wrote:
> Command:
>
> git push master origin
> >
>
> I want upload my change to branch MAIN but when i want upload my change i
> get the following error:
>
> remote: Support for password authentication was removed on August 13, 2021.
> > remote: Please see
> > https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
> > for information on currently recommended modes of authentication.
> > fatal: Authentication failed for '
> > https://github.com/Villelmo/Beginning_Perl.git/'
> >
>
> *My changes are uploaded to branch MASTER. *


Sorry,
what was the question again.
I think everything was answered in the error message you got.
And nothing has to do anything with debian.



-H


--
Henning Follmann | hfol...@itcfollmann.com

Vincent Lefevre

unread,
May 10, 2023, 8:10:06 AM5/10/23
to
On 2023-05-10 05:49:19 +0100, Tim Woodall wrote:
> On Tue, 9 May 2023, William Torrez Corea wrote:
>
> > Command:
> >
> > git push master origin
> > >
>
> shouldn't that be git push origin master? Or even origin main?

Or in general, simply "git push", since the current branch and the
associated upstream branch are the default.

--
Vincent Lefèvre <vin...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

john doe

unread,
May 10, 2023, 9:21:39 AM5/10/23
to
On 5/10/23 05:47, William Torrez Corea wrote:
> Command:
>
> git push master origin
>>
>
> I want upload my change to branch MAIN but when i want upload my change i
> get the following error:
>
> remote: Support for password authentication was removed on August 13, 2021.
>> remote: Please see
>> https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
>> for information on currently recommended modes of authentication.
>> fatal: Authentication failed for '
>> https://github.com/Villelmo/Beginning_Perl.git/'
>>
>
> *My changes are uploaded to branch MASTER. *

To me, the error that you are showing us does not match what you are
trying to say.
Maybe an other list is more appropriate and/or try the GH utility.

--
John Doe

Stefan Monnier

unread,
May 11, 2023, 7:10:13 PM5/11/23
to
> git remote remove origin
> # this re-adds it
> git remote add origin <new URL>

Better go with

git remote set-url origin <newURL>


-- Stefan

to...@tuxteam.de

unread,
May 12, 2023, 12:30:37 AM5/12/23
to
Right :)

Cheers
--
t
signature.asc
0 new messages