Flying in the wind

GIT SVN CLONE 无法使用的情况下从SVN迁移到GIT

git svn init https://192.168.83.39/svn/FreeTicket --no-metadata

git svn fetch

./changename.sh

#!/bin/sh

git filter-branch --env-filter '

OLD_EMAIL="tufei@gitlab.com"
CORRECT_NAME="tufei"
CORRECT_EMAIL="tufei@whutech.com"

if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$CORRECT_NAME"
    export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$CORRECT_NAME"
    export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

git remote add origin http://remoteURL

git push origin master

Statement: all articles / drawings reproduced on this website are for the purpose of transmitting more information and facilitating discussion, which does not mean that the website, the host and the organizer agree with their opinions or confirm the authenticity of their contents. The contents of the articles are for reference only. If the rights of the original author are violated, please contact the website administrator.

Reprint please indicate: Flying in the wind » GIT SVN CLONE 无法使用的情况下从SVN迁移到GIT


Sign in to comment

Comment list