Managing Username/Passwords on multiple GitHub accounts (Windows) - HTTPS

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

КОМЕНТАРІ • 136

  • @mikro63tv94
    @mikro63tv94 3 роки тому +25

    Not all heroes wears cape. Thanks for this..

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

      Best comment yet ta😎

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

      @@Ashotofcode what is extension is that, where you can switch diffrent github accounts?

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

      ​@@mikro63tv94​ LastPass - it's a life saver.. can't recommend it highly enough

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

      exactly

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

      I know it is quite randomly asking but does anybody know a good place to watch new series online ?

  • @HarjinderMankoo
    @HarjinderMankoo Рік тому +5

    Absolutely brilliant. Watched both your SSH and HTTP videos on using two git account from one machine. Took me more than a day to find you but thank god I did. All others made it so difficult to follow. Cannot believe they were describing what you succinctly and with such clarity described. Thanks a lot

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

    WOW, you rock.
    You would not believe how convoluted other people make this. I've seen tons of people with the same problem.

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

    I'cant believe how i was living without knowing this. you are my savior.

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

      Cool glad it was useful Matias😀

  • @markeem321
    @markeem321 4 роки тому +4

    Thaaaank youuu!!! I've destroyed my git pw in credential manager while testing. That's the best explanation ever!

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Thanks Marcus, Glad it helped!

  • @matanpazi3777
    @matanpazi3777 Рік тому +3

    Finally a clear explanation, this stumped me for quite a while..
    Thanks!

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

      Excellent, glad it helped out, cheers Mark

  • @anest-uk
    @anest-uk 3 роки тому +2

    Thanks, very clear. I now see why on SO etc people are saying 'but I want it per account, not per repo!'. Because that's what I want. Surely not an unusual case? Multiple projects, multiple repos in each, PACs that should expire... gives you a shedload of work every 3 months if it is per repo. Baffled as to why there's not a simple solution for this.

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

      Indeed! glad was helpful Cheers Mark

  • @ВячеславПереверзев-ь6ф

    You saved my brain from explosion!) I'm trying setup multiple accounts over 6 hours at new laptop, but I tried be strong because I did it on old one and forgot about this solution)
    This method works on MacOS keychain too

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

      Excellent, glad it helped out. Cheers Mark

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

    thanks for the video bro... i always come back here when something goes wrong

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

    This is really helpful, I was looking for this solution for years.

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

      Cool glad it was helpful :-) Cheers Mark

  • @mikhileshmhirphode4374
    @mikhileshmhirphode4374 Рік тому +2

    I was searching this like anything !
    Thank you 🙏🏻very much 😃

  • @vixsonvx
    @vixsonvx 4 роки тому +1

    Thanks so much. This is the only one that has worked for me so far. So straight forward.

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Excellent, glad it helped Victor :-)

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

    10:30 part help me. Thank you genius!

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

      Cool glad it helped Lucas :-)

  • @ksingh0180
    @ksingh0180 9 місяців тому +2

    You saved my day buddy, a lot of thanks! 🔥🔥

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

      No problem 👍Cheers Mark

  • @jhoanmartinezsilva2609
    @jhoanmartinezsilva2609 4 роки тому +4

    The best explanation eveerr, huge thanks for sharing

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

    you just save me from buying other laptop. seriously.

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

    This is exactly what I wanted! Thanks a lot!

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

      Glad to hear that! Cheers Mark 🙂

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

    Thanks! Very concise and simple to understand

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Thanks Mohd, glad it was helpful!

  • @hakunamatata1427
    @hakunamatata1427 Рік тому +2

    Great tutorial !!!

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

    Great explanation , it was very helpful. Thanks !

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

      You are welcome Hitesh🙂Cheers Mark

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

    Dude, you save my life

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

      Nice glad it was helpful :-) cheers Mark

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

    very very helpful for me!! you save my time
    thanks bro

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

      Nice, glad it helped Hasan. Cheers Mark :-)

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

    that was exactly what i needed...

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

      Sorted! glad was helpful :-) Cheers Mark

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

    Thanks just subscribed hoping to learn a lot from this channel.

  • @gretelmartinez830
    @gretelmartinez830 4 роки тому +2

    best solution I've found - thanks

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Hi Gretel, glad it helped 😀

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

    That's less if I thank you. Take my love from my heart. 😍

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

      Thanks Muhammad 🙂Glad it helped out, Cheers Mark

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

    Thanks so much mate! This was a life saver

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

    This is very useful. Thanks.

  • @sergioernestotostadosanche2509
    @sergioernestotostadosanche2509 4 роки тому +1

    You saved my day buddy, a lot of thanks!

  • @iurylippo6636
    @iurylippo6636 4 роки тому +1

    YOU ARE A LIFE SAVER! !

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Thanks Lury, glad it was helpful :-)

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

    It works. But it uses the entire repository as key, so it's annoying if you have multiple repositories under one account. How to manage multiple github account (not individual repositories)?

  • @markovasic1698
    @markovasic1698 4 роки тому +1

    This helped me a LOT! Thank You ❤

  • @QuickSolutions_
    @QuickSolutions_ 4 роки тому +1

    Thanks a lot, was looking for this.

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Nice, glad was useful Sabir :-)

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

    Thanks a lot, you are a lifesaver.

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

    thanks man very helpful

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

    You're awesome! Thanks a ton!

  • @SonuRaj-er1hn
    @SonuRaj-er1hn 4 роки тому +1

    if i have 2 accounts in both accounts have multiple repo then inside WCM store all repo ?, but i want to not create multiple repo inside WCM, how to do that

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

      Sounds tricky I'm afraid Sonu - hopefully you found something out there help more on this. Cheers Mark

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

    Amazing thanks ! ♥

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

      Glad you like it Jaskaran 🙂Cheers Mark

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

    Hasn't the GCM recently updated to be 'manager-core'?
    Also worth mentioning that different helper programs, while having a baseline set of commands, may have commands specific to the particular helper.
    Finally would be also good to see how to get sending patches via SMTP through the 'git send-email' capability be properly authenticated (permitted) with the email server.

  • @rineeshch04
    @rineeshch04 9 місяців тому +1

    awesome, it worked

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

      Great! Glad it helped out - Cheers Mark

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

    Thanks a lot! Really Helpfull😀👍

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

    very helpful, thank you

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

    thanyou so much mann....................................................

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

      Cool glad it helped 😀 Cheers Mark

  • @ShubhamJadhav-qx5nv
    @ShubhamJadhav-qx5nv 4 роки тому +1

    How to do the same thong pn ubuntu..
    Please help sir...
    Couldn't find crediential manager!?

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Hi Shubham, on ubuntu I'm not sure sorry.

    • @ShubhamJadhav-qx5nv
      @ShubhamJadhav-qx5nv 4 роки тому

      @@Ashotofcode hey sir,
      I found out its almost exactly same..
      Just one more step to store the credentials .🤩

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

    git announced that passwords will be deprecated and requires to use PAT for authenticating git operations, are there any changes with that regard or we can follow the same procedure?
    Btw a great tutorial it worked like a charm!

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

      Thanks Apoorv, will check it out for sure, was not aware of this. Cheers Mark

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

    Thanks a lot for this tutorial! Is there a way to automate it? I don't know how to explain it better but could I add a word and it just knows which variables and ssh key to use? I'm finding it really hard to wrap my head around it and I can see myself forgetting to change my username and email before a push. Thanks!

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

      Cool thanks Tomiwa, automating, maybe! not something I've looked at though afraid. Cheers Mark 🙂

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

    OMG, I was wondering how to do it for the whole couple months. BTW I see u have VS Code as a default editor for the command line.
    For me some weird thing opens in prompt when I run git config --global -e. How did you set VS Code to open as a default?

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

      Nevermind, I figured it out.
      For anyone wondering how to do it just run this line
      git config --global core.editor code
      Thanks a lot for the tutorial again

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

      Nicely done :-)

  • @hlosanidube-mpofu7328
    @hlosanidube-mpofu7328 3 роки тому +1

    Thanks mate

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

    it's a very useful

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

      Nice, glad to hear that Shubham, Cheers Mark 🙂

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

    WOW, you save my life :v

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

      Cool glad it helped! :-) Cheers Mark

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

    How to do it same in mac?

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

      Beyond my knowledge I'm afraid ☹ Cheers Mark

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

    Lot of Thanks#

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

      Cool glad you found useful Hareem :-) Cheers Mark

  • @killjoykjvj
    @killjoykjvj 4 роки тому +1

    Thanks sir.

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

    thanks a lot

  • @giorgiomanadze4401
    @giorgiomanadze4401 4 роки тому +1

    That does not work on a mac, does it?

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Hi Giorgi, just windows this one afraid. Cheers Mark

    • @giorgiomanadze4401
      @giorgiomanadze4401 4 роки тому

      @@Ashotofcode okay, thanks for the answer.

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

    I want to manage over 6 accounts
    .

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

      Should be fine this extrapolates out I think. Cheers Mark

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

    Hero

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

      Cool Thanks :-)

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

      @@Ashotofcode I have to say... Eventually I'm going to stick with deleting my credentials in the WCM because it is a barrier to remind me to also change my user credentials in the.config file. Because even though you're logged in into another account... Your commit credentials stay the same and to me that's not good. But thanks for the video!

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

      @Ashotofcode Apparently if you set your local config file to “git config credential.username “MyUsername”
      … it is enough for Windows Credential Manager to separate different login-credentials.
      So you can have different logins in WCM and you just specify which one you want to use by setting the credential.username in the local config file.

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

    thanks

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

      You're welcome Meral 🙂 Cheers Mark

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

    nice

  • @Oswee
    @Oswee 4 роки тому +1

    I just get rid of multiple accounts like a year ago. It works fine... but... my conclusion was that overall its all clunky. So i created several organizations for my primary account and moved all projects over there. And i joined to some external organizations. So... no i have just single identity for GitHub and everything organized nicely. I had something like (but i'm using ssh):
    cat ~/.ssh/config
    Host my-org.github.com
    HostName github.com
    User my-org
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/github-my-org
    IdentitiesOnly yes
    Host my-username.github.com
    HostName github.com
    User my-username
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/github-my-username
    IdentitiesOnly yes
    EOT

    • @Ashotofcode
      @Ashotofcode  4 роки тому

      Hi Dzintars, thanks for sharing, good to see how others are doing this for sure, I'm gonna try out ssh and create a video so can learn that approach too - you'll be able to critic it for sure it seems from past experience. The organization approach I've not considered (or knew about) thanks for the heads up on this😁 I'm gonna have a dig into it as looks like will be better than both SSH and Https? Cheers Mark

    • @blank9567
      @blank9567 4 роки тому +1

      @@Ashotofcode Your Video helped alot because I was forced into multiple accounts 1 for university codebase server(automated account linked to my studymail limited to only projects from university) and 1 for personal use of gitlab with my privat email. Kinda interested if there is something similiar with ssh. I already would be happy if I could configure something like lets say: this University folder and all subfolders are linked to the one account and globally all other commits are from my private account. None the less this is way better than changing my config file all the time.
      The presentation quality and the live showcase were very high.
      I enjoy that there are people actual helping with setting up the stuff instead of skipping to the now everything is ready part.
      Atleast after finally getting the requirements satisfied the feeling of making progress continues.
      Thanks for your kind help and keep going!

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

    mac users might have to run: $ ssh-add -K ~/.ssh/your-file

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

    This video really helped thanks

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

      Glad to hear it! 🙂Cheers Mark