Hi folks,
Today I will explain the process of moving the projects from one organization to another in Azure DevOps Server which includes the source repository code, history of commits, tags.
Pre-requisites
- Git command line tool
- ssh-keygen tool
- Azure DevOps Project access
Environment Setup
- Create ssh key on your local PC
- Same user account on both the organization with required permissions (Admin)
- On Azure DevOps, to go user profile
- Add the generated SSH pub key of PC to Azure DevOps
Procedure in terminal/command prompt
1. git clone <old org project repo ssh url>
2. cd <project>
3. git branch -a
a. git checkout <all branches one by one>
4. git fetch --tags
5. git remote rm origin
6. git remote add orgin <new org project repo ssh url>
7. git push origin --all
8. git push --tags
Hope you are able to move/copy the project source code which includes the history of commits and tags.
Please send your comments and feedback to psrdotcom@gmail.com
No comments:
Post a Comment