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
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.
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
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)?
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
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.
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!
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!
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?
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 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!
@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.
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
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
@@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!
Not all heroes wears cape. Thanks for this..
Best comment yet ta😎
@@Ashotofcode what is extension is that, where you can switch diffrent github accounts?
@@mikro63tv94 LastPass - it's a life saver.. can't recommend it highly enough
exactly
I know it is quite randomly asking but does anybody know a good place to watch new series online ?
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
You're welcome! Cheers Mark
WOW, you rock.
You would not believe how convoluted other people make this. I've seen tons of people with the same problem.
Cheers appreciated :-)
I'cant believe how i was living without knowing this. you are my savior.
Cool glad it was useful Matias😀
Thaaaank youuu!!! I've destroyed my git pw in credential manager while testing. That's the best explanation ever!
Thanks Marcus, Glad it helped!
Finally a clear explanation, this stumped me for quite a while..
Thanks!
Excellent, glad it helped out, cheers Mark
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.
Indeed! glad was helpful Cheers Mark
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
Excellent, glad it helped out. Cheers Mark
thanks for the video bro... i always come back here when something goes wrong
Cheers David :-)
This is really helpful, I was looking for this solution for years.
Cool glad it was helpful :-) Cheers Mark
I was searching this like anything !
Thank you 🙏🏻very much 😃
You're welcome 😊 Cheers Mark
Thanks so much. This is the only one that has worked for me so far. So straight forward.
Excellent, glad it helped Victor :-)
10:30 part help me. Thank you genius!
Cool glad it helped Lucas :-)
You saved my day buddy, a lot of thanks! 🔥🔥
No problem 👍Cheers Mark
The best explanation eveerr, huge thanks for sharing
Glad it was helpful Jhoan!
you just save me from buying other laptop. seriously.
Cool! Cheers Mark
This is exactly what I wanted! Thanks a lot!
Glad to hear that! Cheers Mark 🙂
Thanks! Very concise and simple to understand
Thanks Mohd, glad it was helpful!
Great tutorial !!!
Thank you! Cheers! 🙂
Great explanation , it was very helpful. Thanks !
You are welcome Hitesh🙂Cheers Mark
Dude, you save my life
Nice glad it was helpful :-) cheers Mark
very very helpful for me!! you save my time
thanks bro
Nice, glad it helped Hasan. Cheers Mark :-)
that was exactly what i needed...
Sorted! glad was helpful :-) Cheers Mark
Thanks just subscribed hoping to learn a lot from this channel.
Awesome, thanks Niraj
best solution I've found - thanks
Hi Gretel, glad it helped 😀
That's less if I thank you. Take my love from my heart. 😍
Thanks Muhammad 🙂Glad it helped out, Cheers Mark
Thanks so much mate! This was a life saver
No worries! Cheers Mark 🙂
This is very useful. Thanks.
You're welcome! Cheers Mark
You saved my day buddy, a lot of thanks!
Glad I could help Sergio!
YOU ARE A LIFE SAVER! !
Thanks Lury, glad it was helpful :-)
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)?
This helped me a LOT! Thank You ❤
You're welcome Marko 😊
Thanks a lot, was looking for this.
Nice, glad was useful Sabir :-)
Thanks a lot, you are a lifesaver.
Glad it helped Vikas!
thanks man very helpful
No problem! Cheers Mark
You're awesome! Thanks a ton!
You're welcome!
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
Sounds tricky I'm afraid Sonu - hopefully you found something out there help more on this. Cheers Mark
Amazing thanks ! ♥
Glad you like it Jaskaran 🙂Cheers Mark
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.
awesome, it worked
Great! Glad it helped out - Cheers Mark
Thanks a lot! Really Helpfull😀👍
Glad it helped! :-)
very helpful, thank you
You're welcome!
thanyou so much mann....................................................
Cool glad it helped 😀 Cheers Mark
How to do the same thong pn ubuntu..
Please help sir...
Couldn't find crediential manager!?
Hi Shubham, on ubuntu I'm not sure sorry.
@@Ashotofcode hey sir,
I found out its almost exactly same..
Just one more step to store the credentials .🤩
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!
Thanks Apoorv, will check it out for sure, was not aware of this. Cheers Mark
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!
Cool thanks Tomiwa, automating, maybe! not something I've looked at though afraid. Cheers Mark 🙂
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?
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
Nicely done :-)
Thanks mate
Any time! Cheers Mark
it's a very useful
Nice, glad to hear that Shubham, Cheers Mark 🙂
WOW, you save my life :v
Cool glad it helped! :-) Cheers Mark
How to do it same in mac?
Beyond my knowledge I'm afraid ☹ Cheers Mark
Lot of Thanks#
Cool glad you found useful Hareem :-) Cheers Mark
Thanks sir.
Most welcome
thanks a lot
Cheers Sam
That does not work on a mac, does it?
Hi Giorgi, just windows this one afraid. Cheers Mark
@@Ashotofcode okay, thanks for the answer.
I want to manage over 6 accounts
.
Should be fine this extrapolates out I think. Cheers Mark
Hero
Cool Thanks :-)
@@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!
@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.
thanks
You're welcome Meral 🙂 Cheers Mark
nice
Cheers Clint 😀
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
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
@@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!
mac users might have to run: $ ssh-add -K ~/.ssh/your-file
This video really helped thanks
Glad to hear it! 🙂Cheers Mark