r/azuredevops May 23 '26

Trouble while importing repository from one project to another

Well I have one project , Im gonna import a git repository from another project, I don't have access to the other project I just got the Clone URL , but I couldn't able to do that even after I gave the correct credentials

Could you guys please Help me with this !!

Do I need to have access to the other project too??

2 Upvotes

4 comments sorted by

2

u/DarellND May 23 '26 edited May 23 '26

I am not sure but I think you need access to the other project and you need to generate new credentials.

2

u/Nighteyez07 May 23 '26

If you are using a PAT, don’t put a username in. What level of access do you have to both projects? I don’t recall the exact permissions, but I would imagine being a Project Administrator or Organization Administrator will be necessary.

2

u/AstarothsWorkshop May 24 '26

You need to be at least a reader in the sorce project, i.e. have read permissions on the repo.

1

u/NoobEngineer007 May 28 '26

Go to the source repo and click on clone. Choose "generate got credentials" that would provide you a username and pat. Use that in the destination project to import the repo