Using Personal Access Tokens with GIT and GitHub

Поділитися
Вставка
  • Опубліковано 10 гру 2024

КОМЕНТАРІ • 256

  • @juliepowderly6321
    @juliepowderly6321 3 роки тому +69

    Thank you so much for this! Very helpful after a lot of frustration trying to read through the documents on my own.

    • @Robin-xm4us
      @Robin-xm4us 2 роки тому +1

      Yes usually documentation on these topics sucks

  • @magneat
    @magneat 3 роки тому +40

    so before that we had a password transmitted over internet. now we have the token transmitted over internet, which is just a longer password. a serious upgrade...

    • @narminaliyeva6175
      @narminaliyeva6175 3 роки тому +1

      And There is nothing we could do🥲

    • @hugopristauz3620
      @hugopristauz3620 3 роки тому +8

      You always have to transmit something over the internet. Yes, making the changes is tedious, but I think Oauth does a good job, and my understanding is, git sticks to Oauth best practices. The difference to password is, that you can limit the access, also can temporaryily change access rights.

    • @Wheyong
      @Wheyong 3 роки тому

      @@narminaliyeva6175 nothing?

  • @vman049
    @vman049 3 роки тому +45

    Solid tutorial. On point, no fluff. Thank you!

    • @CastleBomber
      @CastleBomber 3 роки тому

      sheesh, 20 seconds in and I can tell its already gonna' be good

  • @touficahammed4378
    @touficahammed4378 2 роки тому

    Oh!! Thanks a lot. Just moving last 2 hours here and there to figure it out ... Finally got it. I am setting up github to my remote VPS.

  • @danmiller7709
    @danmiller7709 3 роки тому

    FINALLY. Great video. I wasted so much time because I didn't give my new token any permissions.... big dumb, got frustrated and I should have just slowed down... Thank you.

  • @bcgatm
    @bcgatm 3 роки тому +4

    Thank you and God bless you brother, it's amazing how often we, well I, forget the simple things in computing. Your video reminded me that the password, though accepted, is not shown. I was expecting **** are something and thus it was working all along if I had just clicked the Enter key. Thanks again for reminding me of the basics.

  • @electronash
    @electronash 3 роки тому

    I'm sure a lot of other people were pulling their hair out after github made this change. lol
    I couldn't tell if I was pasting the token into WSL, as the right-click doesn't give you the normal menu like on native Ubuntu.
    Nothing I tried seemed to work for that, so I had to MANUALLY type the token for the first git push.
    Then used the cache option, and it remembered the token the next time I opened WSL.
    Thanks for the vid. Super helpful. ;)

  • @joechristl1444
    @joechristl1444 3 роки тому +16

    great stuff. But my existing environment never seems to re prompt me for the new credentials.

  • @r55551
    @r55551 3 роки тому +12

    Great walk through, thank you. Git should be paying you for this!

  • @DanielTobi00
    @DanielTobi00 2 роки тому

    this ended a 13hrs mystry. Thank you so much

  • @michaelmcfadden396
    @michaelmcfadden396 2 роки тому +2

    Thanks for this. I was pretty confused but the way you presented it makes it pretty simple.

  • @vipulkumar2845
    @vipulkumar2845 2 роки тому

    Thanks, man for the solution you gave to re-entering/pasitng the token again & again.

  • @allaboutwirings2460
    @allaboutwirings2460 10 місяців тому

    Thank you sir its very very informative. after many days effort at last i found to the point video. thank you sir once again

  • @kamilpeza7664
    @kamilpeza7664 2 роки тому

    Was trying to push a project and I got this issue. Thank you.

  • @shreesanghose5888
    @shreesanghose5888 3 роки тому

    Thanks ! the cache command saved from copying and pasting the "Access token" each time ! :D

  • @halfalligator6518
    @halfalligator6518 3 роки тому +1

    just FYI if you're on mac you may have to manually open your keychain and delete the GitHub entries. Various git config settings (system/local/global & even XCode) seem to be setup to check keychain first and will thus use your old password.

  • @dragondream659
    @dragondream659 2 роки тому

    THANK YOU SO MUCH. I was struggling to do this. I didn't know where to write my token.

  • @CastleBomber
    @CastleBomber 3 роки тому +1

    very well done! so swag, thanks! can't believe it was such a minor fix, liked the way you summarized the tokens simply

  • @RonSheely
    @RonSheely 2 роки тому +1

    Thank you Ed. Just what I needed.

  • @christossmiliotopoulos5367
    @christossmiliotopoulos5367 Рік тому

    Great tutorial that helped deal with tokens frustrated issue. Great thanks!!

  • @danielcarlos2740
    @danielcarlos2740 3 роки тому

    Thanks, Ed Goad, you're the best

  • @SopuruKate
    @SopuruKate Рік тому

    Thank you so much... I spent sleepless night because of this password issue.. Was wondering why nothing was showing as I typed/pasted... Thanks a lot

  • @abdirashidmhussein5270
    @abdirashidmhussein5270 2 роки тому

    Man you saved me I have been struggling this password token. Thanks alot

  • @mysomervda
    @mysomervda 3 роки тому +1

    Thanks. I finally needed to work this out as we get closer to the decommissioning day

  • @aleonflux1138
    @aleonflux1138 3 роки тому +7

    Thanks Ed. Exactly what I was looking for :)

  • @beeair3919
    @beeair3919 3 роки тому +2

    This is very helpful. You save the day. Much Appreciated.

  • @ger1991mess
    @ger1991mess Рік тому

    You saved me a lot time sir, thank you very much.

  • @LiudvikasTaluntis
    @LiudvikasTaluntis 2 роки тому +3

    What these instructions don't tell you is that your Personal Access Token (PAT) will only be cached for around 10 minutes. After that you'll need to keep entering the PAT as your password again.

  • @yourresttime
    @yourresttime 2 роки тому

    Who gona save my day toniiiiiight!? oh oh oouw))) Thank you so much!

  • @Sergei_B
    @Sergei_B 2 роки тому +1

    Amazing tutorial, all we need it. Thanks man

  • @CalebJames-k2e
    @CalebJames-k2e 10 місяців тому

    Thank you for making this look easy

  • @no_more_free_nicks
    @no_more_free_nicks 2 роки тому

    That was helpful, and it also works with Personal Access Tokens.

  • @LordKaos666
    @LordKaos666 Рік тому

    Short and clear ☺, thanks for the video Dude.

  • @D0F4M1N3
    @D0F4M1N3 2 роки тому

    It's a FKIN PASSWORD OH MY GOD... thank you man.. I stuck with this as begginer, I copied this but didn't knew what to do with it xD

  • @gotbletu
    @gotbletu 3 роки тому

    Thanks boss, who needs reading when u got videos like this lols

  • @shreyaslakshman9162
    @shreyaslakshman9162 2 роки тому

    worked like a charm!

  • @serecode
    @serecode Рік тому +1

    If git config --global credential.helper cache is not working for you, use the following command instead :
    git config --global credential.helper store

    • @NamasteBunny
      @NamasteBunny 10 місяців тому

      Thank you so much! 🥲

  • @a.ramachandramotivationalt2002
    @a.ramachandramotivationalt2002 2 роки тому

    My brain exploded like Nagasaki but i slowly understood the whole video the more i watched it

  • @jeffcodes1826
    @jeffcodes1826 2 роки тому

    Thank you! just what i needed

  • @MarsTheProgrammer
    @MarsTheProgrammer 3 роки тому +2

    i followed all this and i keep getting: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. Even though i already did it.

    • @actuallymarcos8606
      @actuallymarcos8606 3 роки тому

      Same! I had my password already setup so there was no need to type in everytime. Now I need to put the token on the password field but git doesnt ask me for the password, just gives me the error.

    • @MarsTheProgrammer
      @MarsTheProgrammer 3 роки тому +1

      @@actuallymarcos8606 I figured it out for my computers (running MacOS), i had to clear the git cache this way on terminal: "git credential-osxkeychain erase". Then clone a private repo and then enter my email and password (token). I was clearing the git credentials a different way and trying to push code which wasn't working.

    • @actuallymarcos8606
      @actuallymarcos8606 3 роки тому

      @@MarsTheProgrammer Thanks for replying bro! I will try your solution and see if works for me too.

  • @jakemertz2660
    @jakemertz2660 3 роки тому +1

    I have a personal access token working, but it seems to only work for one of my git repositories. Do I need to make one for each new project?

  • @dannyheroic
    @dannyheroic 2 роки тому

    Worked for me. Thanks for the demonstration!

  • @manikandanv1811
    @manikandanv1811 2 роки тому

    You save my happy in job Thanks a bunch from
    manikandan -- INDIA -Tamilnadu

  • @yafooral-kebab3017
    @yafooral-kebab3017 3 роки тому +3

    Very pedagogical tutorial. Thank you.

  • @GwlaS
    @GwlaS 3 роки тому

    Thank you so much, it helped me access my github repo

  • @coolgomzicj
    @coolgomzicj 3 роки тому

    @7:05 Command for saving the token so that you dont have to type it every time

  • @zantica
    @zantica 3 роки тому

    Thank you man!! I trying to do this s*** for a week

  • @sanguinho
    @sanguinho Рік тому

    Very straight forward. Thank you sir!

  • @BCTAHbKA
    @BCTAHbKA 3 роки тому

    This is the best video ever

  • @movieclips3268
    @movieclips3268 2 роки тому

    Thanku so much. Really Solved a big problem for me.

  • @sivkaburka1062
    @sivkaburka1062 3 роки тому +1

    You are present perfect of programming!

  • @XinhLe
    @XinhLe 2 роки тому

    Thank u. you save my life 3 times.

  • @monikadesai8251
    @monikadesai8251 Рік тому

    ☺That's so so much helpful.... I m thankful for this best tutorial 😘

  • @wealthyman2703
    @wealthyman2703 3 роки тому +1

    Mine is not working.. it says fatal, not a git repository.. please help

  • @jonatanmora7960
    @jonatanmora7960 2 роки тому

    Thanks for your video, it helps me a lot

  • @thcsparky
    @thcsparky 3 роки тому +2

    Good video, easy to follow instructions.Thanks!

  • @statrex3393
    @statrex3393 3 роки тому +2

    STRAIGHT TO THE POINT. Amazing. Thank you!

  • @karthikt9560
    @karthikt9560 Рік тому

    Thank you, very clear!

  • @cesarperalta4959
    @cesarperalta4959 2 роки тому

    You are a genius!. Like and subbed!

  • @basabdattaray1
    @basabdattaray1 Рік тому

    great video - thank you very much for putting this together so well

  • @iammihirsig
    @iammihirsig 2 роки тому

    Thanks man . I learned a valuable thing 💫

  • @octaviopinto.b8657
    @octaviopinto.b8657 2 роки тому

    gracias, no entendía como era pero ahora si quedo funcionando

  • @eddiegere
    @eddiegere 3 роки тому +1

    Thank you so much! Extremely helpful.

  • @mdkhorshed2043
    @mdkhorshed2043 2 роки тому

    Thanks for creating this helpful video 😄😄

  • @eneseyuboglu2631
    @eneseyuboglu2631 3 роки тому

    What did you paste at 5:33?

  • @simonlopez5118
    @simonlopez5118 2 роки тому

    Excellent tutorial, I really appreciate it, man

  • @spiffjekey-green4034
    @spiffjekey-green4034 Рік тому

    Thank you so much. I get frustrated cos each time I have to copy some random strings somewhere (PAT)

  • @ericramirez2769
    @ericramirez2769 3 роки тому

    Thank you Ed! I appreciate the help!

  • @compilerrun5516
    @compilerrun5516 3 роки тому +1

    Made my day! Thanks a lot mate.

  • @sakshijain2910
    @sakshijain2910 3 роки тому +1

    But even after using token it is not asking me for entering thi after every command

  • @abhishekbhat4618
    @abhishekbhat4618 2 роки тому

    This video helped a lot , thanks boss

  • @tonsofcode2478
    @tonsofcode2478 2 роки тому

    Many thanks my friend!

  • @soumitralahiri100
    @soumitralahiri100 2 роки тому

    Excellent tutorial. Thanks so much Ed!!

  • @Annishvarma
    @Annishvarma Рік тому

    Hi, what happens if a user leaves the organization that creates PAT. How to assign PAT to a new user or service account.

  • @Razvanh29
    @Razvanh29 2 роки тому

    How about using the token on a repo where you are a contributor, not an owner?

  • @SinuhéGarcíaMartinez
    @SinuhéGarcíaMartinez 3 місяці тому

    Thank you. Excelent tutorial.

  • @KyleBondo
    @KyleBondo Рік тому

    The only thing I had to do different was use: "git config credential.helper wincred" -- for my WIN10 laptop. Otherwise I got a UNIX error. Everything else worked like a charm! Thank you!

  • @peterrake9795
    @peterrake9795 2 роки тому +1

    Really helpful, thank's a lot!

  • @ajk7151
    @ajk7151 3 роки тому +1

    excellent video! provided all the required info. thanks

  • @qwertycobain1601
    @qwertycobain1601 2 роки тому

    THANKS DUDE!!! very usefull tutorial

  • @arijaa.9315
    @arijaa.9315 2 роки тому

    Thanks for this tutorial, just it warns (Submitting this form will generate a new token. Be aware that any scripts or applications using this token will need to be updated. ) so my question is Every time I need to push my changes to the git if I regenerate the key is that will affect the code and upateds on the git. Or I need to keep this generated token in a text file or some where save to keep using the same key for all updates? As I understand from the video it is ok to regenerate the token and continue woking, so correct me please if I am wrong

  • @mo.downhill6760
    @mo.downhill6760 2 роки тому

    Okay I have tried cache but after closing and reopening the terminal I'm still asked to provide user name and password 🔑

  • @gautamjain7986
    @gautamjain7986 3 роки тому +2

    Very simple and helpful, Thanks a lot

  • @frogg626
    @frogg626 2 роки тому

    Awesome video, thank you so much

  • @devips5102
    @devips5102 2 роки тому

    Thanks Man. You saved me

  • @vouneo
    @vouneo 2 роки тому

    Very good explanation

  • @zakhariihusar6975
    @zakhariihusar6975 3 роки тому

    It helped me on my Linux Manjaro. But I don't understand why adding the token earlier directly to VS code didn't help 🤔

  • @inuffishthought
    @inuffishthought 9 місяців тому

    Thanks a lot this was very helpful. One modification for Windows users.
    If you use git bash on Windows, you may encounter the following error after following these instructions.
    Error fatal: credential-cache unavailable; no Unix socket support
    This is because git bash does not use Unix sockets on Windows. Instead of setting credential.helper to cache, set it to wincred:
    git config --global credential.helper wincred

  • @alonsoaguilar4559
    @alonsoaguilar4559 2 роки тому

    Very accurate information. Thank you!

  • @anashussain3540
    @anashussain3540 2 роки тому

    Thankyou so much, nice tutorial, you help me to solve the problem very easy :), do more videos

  • @renann_limaa
    @renann_limaa Рік тому

    Very clear tutorial. It helped me a lot ❤

  • @younessgminf6818
    @younessgminf6818 Рік тому

    is there a way to see your token number again after creating it , lets say you forgot to store it that time

  • @mennaelkhamissy7469
    @mennaelkhamissy7469 2 роки тому

    It says repository is not found I literally tried everything and I can’t do it someone help please

  • @hugopristauz3620
    @hugopristauz3620 3 роки тому +3

    Thanks dude - you helped me a lot. Exactly what I was looking for :-) Especially the credential caching is very useful :-)))))

  • @francksgenlecroyant
    @francksgenlecroyant 2 роки тому

    Super cool, it helped!

  • @The_MadMonk
    @The_MadMonk 2 роки тому

    That helped a lot, thank you!

  • @jedrekkostyk2082
    @jedrekkostyk2082 2 роки тому

    Thank you chief!

  • @AristotelianLogic
    @AristotelianLogic 2 роки тому

    Useful! Thank you.

  • @adolphusk.shannonjr.6040
    @adolphusk.shannonjr.6040 2 роки тому

    thank you soooo much, i now understand it.

  • @sulaiman.micheal
    @sulaiman.micheal 2 роки тому

    Solved my problem. Thanks.