1. Clone the project under the original warehouse.
Git clone old.git (old git warehouse address)
You can also clone a branch separately.
Git clone -b develops old ones.
2. Create the warehouse address of the new project.
3. Enter the address of the old project, for example, the directory under clone is test.
Cd test
Replace the address of the old project with the new one.
Git remote set-URL-push originnew.git (new.git is the git address of the new project).
4. Push the image to a remote location
Git push mirror
Supplement:
If it is a separate branch dev, the dev under the new project can see the submission record of the old project. If you want to merge it into the main file, use the following command:
Git checkout master
Git merger development
Delete branch:/postedit8616161665438.
Modify branch:/Posted IT/86161351