How To Fix Support For Password Authentication Was Removed On GitHub

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can fix this problem which occurs in git when you try to push your changes to your main branch using git and you have provided your username and password for git and you uh execute this git push origin command and you see the error which is called support for password was removed right so let's see how we can solve this problem and and you can see uh this says that support for password authentication was removed on this date please see this uh thing so you can't any more authenticate with this method now in order to authenticate you need a new kind of method which I'm going to show you so if you are using this kind of method it will uh not work because it was removed right so go to your GitHub account and here click on your user profile and then click on settings and then on the left hand side go at the very bottom where you see developer settings and then click on personal access tokens you can create a fine grain token which is in beta right now and the token which is classic token right so you can click on classic token and then you can generate a new classic token from here click on generate new token and then click on uh generate new token which is the classic token you can give any node to your token let's say I am giving the node my token here you can choose the expiration date I can just give a custom expiration date I want to expire this token in one or two days so I'm going to just give a very short expiration because I am doing this for the demonstration purposes you might want to give the expiration for example for 90 days or you can also choose no expiration also then you can select the scope so I can just select all these Scopes here so that I can do all the actions uh using this token right so I'm going to choose all these options here so you can also choose all these options one by one right so you can see I have chosen all the options and then click on generate token and then this is the token which is created right now in my case I can copy this token and save this at some location you can see make sure you copy your personal token you won't be able to uh see it again right so you need to copy this and paste it somewhere where you can access it again I'm going to paste it on the uh editor and then you need to edit this command uh with this token right so the token is this one I'm going to replace this token here in place of token I'm going to give this command in the description of this video so you can also uh use this command then you need to give the username right so in my case my GitHub username is p knowledge right so I can just open the repository once again and you can see this is the uh username here and this is the repository name you can copy both of uh both of them right and then you can replace this and you can replace this here in place of username and repository name so username in my case is p knowledge and the repository name is hello underscore test right let me copy this command here and then paste it inside my repository I'm going to just paste this command and then press enter and now once again I'm going to uh give the command git push origin mean and then press enter and this time you can see my push is successful so once you see this kind of output this means that this new file is pushed into my repository so I can go to my repository you can see previously it only contained readme.md file when I refresh this I can see hello.py file also right I hope you enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge
Views: 68,458
Rating: undefined out of 5
Keywords: Support for password authentication was removed ubuntu, Support for password authentication was removed mac, Support for password authentication was removed github, support for password authentication was removed on august 13, 2021 sourcetree, git clone support for password authentication was removed, 2021 mac, jenkins stderr: remote: support for password authentication was removed on august 13, 2021., github personal access token
Id: ePCBuIQJAUc
Channel Id: undefined
Length: 5min 12sec (312 seconds)
Published: Tue Jun 06 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.