MacOS Git multi-user accounts, keychain cache
Hello Friends, As I have two different GitHub accounts one is office account and another is the personal account. So every time when I want to do some git commands that time I have to delete existing account from the keychain. Then add a new account, which is really frustrating so I did some research and finally able to add multiple accounts in the keychain. The reason behind it as when we use GitHub commands then our credentials are stored in cache and keychain so we don't require to type every time . following are the commands which we needs to be followed: To check your current credentials cached in keychain you can use the following command: $ git credential-osxkeychain get then press the enter button twice . Now come to the point : In the terminal enter the command: $ git config --global --edit This will add open git config file in the terminal to edit If you haven't already and If you want to open with other edito...