简体   繁体   中英

Change Azure DevOps Projects to another project

I accidently pointed my VSCode project to a wrong DevOps Project, hence, wrong repository. How can I undo (maybe detach?) and point it back to my desired DevOps Project?

I'm using Git.

How can I undo (maybe detach?) and point it back to my desired DevOps Project?

First, to keep your code safe, you'd better backup your vscode project.

To point it back to the desired DevOps Project, we could connect the correct azure devops project repo in the VS code, then copy your VSCode project to the local folder of your correct repo, we could submit this new added project to the correct repo.

Undo the change in the worong devops project, we could delete that project manually if you clear all files you adeed. If you have installed the GitLens extension installed you should be able to simply select "Restore" action from selected "File history" commit.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM