organizzazionecomunitasolidali / SEM

Shared Economy Marketplace featuring alternative currencies
GNU General Public License v3.0
0 stars 0 forks source link

Avere account Github multipli sulla stessa macchina #7

Closed lbattt closed 6 months ago

lbattt commented 6 months ago

From https://stackoverflow.com/questions/25947059/git-clone-repository-not-found

Come avere piu' account github sulla stessa macchina, per lavorare su piu' repo, con utenti diversi per ogni repo.

Per ogni repo, clonare in modalita; HTTPS e non SSH, ma usando i token PAT nell'URL. Procedura descritta qui:

Step 1: From your Github account, go to Settings Account Settings

Then, Developer Settings Developer Settings Then Personal Access Token PAT Settings Then, Generate New Token (Give your password) Generate Token

Now Fillup the form (scope/access permission of the repository) and click Generate token and Copy the generated Token (Copy and save it, it will be shown for the first time only, otherwise you have to generate it again), it will be something like ghp_sFhFsSHhTzMDreGRLjmks4TzuzgthdvfsrtaCopy Token

Step 2: Now, copy the resource indicator:Resource Indicator

For example: https://github.com/AnwarXahid/sso-client-java-servlet.git and it is generated by https://github.com/**YOUR USERNAME**/YOUR REPO NAME.git

Finally, open terminal/ git bash and add the PAT token before resource indication: For example: https://ghp_sFhFsSHhTzMDreGRLjmks4Tzuzgthdvfsrta@github.com/AnwarXahid/sso-client-java-servlet.git Basically, it is generated by https://YOUR TOKEN@github.com/YOUR USERNAME/YOUR REPO NAME.git

So, the final command would like this: git clone https://YOUR TOKEN@github.com/YOUR USERNAME/YOUR REPO NAME.git

Press ENTER and your repo will be cloned to local!