A friend and myself are sharing my computer. I\'ve made pushes to GitHub using the git bash shell on Windows 7. Now we\'re in a different project on that computer and I need
I couldn't figure out how to have a 2nd github identity on the one machine (none of these answers worked for me for that), but I did figure out how to be able to push to multiple different github accounts as myself.
Set up a 2nd SSH key (like so) for your 2nd github account
Change between accounts thus :
Push with my new 2nd github account
ssh-add -D
ssh-add ~/.ssh/ssh_key_for_my_2nd_account
git push
Push with my main account
ssh-add -D
ssh-add ~/.ssh/id_rsa
git push