clone problem #68467
Replies: 3 comments
-
Github gets configured on a project basis, so you can push each project to a different account or even one project to both accounts. Go to angular_corse folder on your device and run these commands: Then do that the same for .NET_course folder while changing the Github repository url for the other account and you are done. If you want to have the same project on both Github accounts, just connect the folder with Don't forget to create an SSH key on your device and add it (public key) to both Github accounts, so that you can access publish to them. |
Beta Was this translation helpful? Give feedback.
-
To clone repositories from different GitHub accounts on the same device, you'll need to ensure you have set up your local Git configuration properly. Here's a step-by-step guide: 1.Set Up SSH Keys for Each GitHub Account: Generate SSH keys for each GitHub account following GitHub's guide: Generating a new SSH key and adding it to the ssh-agent. Create or edit your SSH config file (~/.ssh/config). If it doesn't exist, create it.
3.Clone Repositories Using Custom Hosts: Clone the repositories using the custom hosts you defined in the SSH config.
Replace your_ssh_key_for_X1 and your_ssh_key_for_X2 with the respective SSH keys for each GitHub account. With this setup, you'll be able to clone and work with repositories from different GitHub accounts on the same device without conflicts. Just make sure to use the correct custom host (github.com-X1 or github.com-X2) when cloning or interacting with each repository. |
Beta Was this translation helpful? Give feedback.
-
i have 2 accounts in GitHub & i have projects so i wanna use Each project has a different clone to a different account on the same device , so how i do that
Example :
project name : angular_corse == > GitHub account : X1
project name : .NET_course ==> GitHub account : X2
so how to clone it to different repository & accounts on the same device
Beta Was this translation helpful? Give feedback.
All reactions