Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- eslint
- 프로젝트
- no-param-reassign
- xenserver app&desk
- 쿠버네티스
- 머신러닝
- app&desk
- eks
- AWS
- jenkins
- centos7
- rocky
- microservices
- 로키
- 설치
- 마이크로서비스
- sagemaker
- 서버 베이스 컴퓨팅
- fargate
- serverless
- 구축
- kubernetes
- 가상 데스크탑 환경
- 오픈스택
- 젠킨스
- 객체지향
- IaaS
- openstack
- server base computing
- OOP
Archives
- Today
- Total
IT
[git] SVN to GIT 마이그레이션 - 1 본문
$ git svn clone --no-metadata svn://1.0.0.1/migration_test_repo/trunk
Initialized empty Git repository in C:/Users/lms81/Documents/Fax/migration-test/3. git-migration/trunk/.git/
r1 = 3346962de771f3871cce348020e19f7f9d45f423 (refs/remotes/git-svn)
A .project
A .settings/org.eclipse.jdt.core.prefs
A .classpath
r2 = fe51588223437413daece28d530d9a9295cdfb13 (refs/remotes/git-svn)
W: +empty_dir: src/main/test
r12 = c411d9a18fb938d7598e19e2548feb76ee5cd582 (refs/remotes/git-svn)
Checked out HEAD:
svn://1.0.0.1/migration_test_repo/trunk r12
creating empty directory: src/main/test
$ svn log svn://1.0.0.1/migration_test_repo | grep -c "r[0-9]"
$ svn log svn://1.0.0.1/migration_test_repo | grep -c "r[0-9]"
$ git config --global core.autocrlf input
svn_dir='2. svn-origin'
git_dir='3. git-migration'
echo "=========GIT Directory========="
find ./"${git_dir}"/sampleProject/ -not -path "*.git/*" -not -name "*.git" -type d | wc -l
echo "=========GIT Files========="
find ./"${git_dir}"/sampleProject/ -not -path "*.git/*" -type f | wc -l
echo "=========SVN Directory========="
find ./"${svn_dir}"/sampleProject/ -type d | wc -l
echo "=========SVN Files========="
find ./"${svn_dir}"/sampleProject/ -type f | wc -l
echo "=========DIFF START========="
diff -r --brief --exclude=.git ./"${svn_dir}"/sampleProject/ ./"${git_dir}"/sampleProject/
echo "========DIFF FINISHED========"
echo "========SVN EMPTY DIRECTORY========"
find ./"${svn_dir}"/sampleProject/ -empty -type d
svn_dir='./2. svn-origin/sampleProject/'
git_dir='./3. git-migration/sampleProject/'
find "${svn_dir}" -type f -exec md5sum {} \; | sed 's/"${svn_dir}"/"${git_dir}"/' > ./git_origin_md5_expect.list
md5sum --quiet -c ./git_origin_md5_expect.list > ./md5_check_result.txt
'개발' 카테고리의 다른 글
[Javascript / 리팩토링] 불필요한 매개변수 프로퍼티 재할당 (feat. ESLint : no-param-reassign 에러 발생) (0) | 2022.11.17 |
---|---|
[Javascript / 리팩토링] 객체 프로퍼티 재할당 (feat. ESLint : no-param-reassign 에러 발생) (0) | 2022.11.16 |
[Jquery] check box 제어 (feat. jqeury, event, toggle, select) (0) | 2019.12.31 |
JAVA 업캐스팅 (3) | 2019.02.25 |
c언어 배열, 포인터, 구조체 (0) | 2019.02.25 |
Comments