sourcetree Git project migration copy method

sourcetree project migration method

Preparation

  1. Create a new Git warehouse and write down the Git address;
  2. For the Git project that needs to be migrated, confirm that the migrated branch code is running normally, and the current code version is the code branch that needs to be migrated;

start operation

  1. Operate on the Git project that needs to be migrated:
    [Warehouse] - [Warehouse Settings] , modify the Git address, and replace it with the newly created destination Git address;
    insert image description here

  2. Arbitrarily modify a piece of code and push it to git, and check in the new Git warehouse whether there is any update information just pushed

Not surprisingly, the original remote branch has been migrated to the new Git warehouse address, and then notify the backend to update the Git address, and the migration is successful even if the build is correct

Guess you like

Origin blog.csdn.net/qq_21113235/article/details/113650881