Possible Duplicate:
How to work with 2 ssh keys
I searched how to use Git+Github on one machine and 2 users. I'm running Win7 and a portable version of Git.
Let's say that I (kursion) want to "push" my project to my repository called kursion, and my second user (kursion2) wants to "push" his project to his repository called kursion2 (on the same machine).
What I have done already is clone both projects to gitKursion and gitKursion2 folders. Generate the key RSA key for kursion with:
> ssh-keygen -t rsa -C "kursion@you_won't_know_this.com"
First: i wasn't able to change the directory to something like => /d/documents/ssh-keys, got "Failed", "File exists" error :( Second, I am not able to change the user who push the project. I can do
> git push git@github.com:kursion/myProject #(works because i'm kursion and the RSA key is correct for this user)
But i can't do this:
>git push git@github.com:kursion/myProject #(because i'm not kursion2 and the RSA key is the one from "kursion")
How to do this in a clear and simple manner?
Will appreciate any help and hope that I am not spamming duplicate question :)