0

cd D:/

Extract Author information

java -jar svn-migration-scripts.jar authors $SVNURL > authors.txt

Clone the SVN Repo

git svn clone --stdlayout --authors-file=authors.txt $SVNURL SVNAsGIT

Clean the new GIT repository

java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --force

Update the authors file

git config svn.authorsfile authors.txt>

Clean the new GIT repository

java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --force

Synchronize the GIT repository

git svn fetch
git svn rebase

convert svn show-ignore file, if any, to .gitignore file

cd SVNAsGIT
git svn show-ignore > .gitignore
git add .gitignore
git commit -m 'Convert svn:ignore properties to .gitignore.'

3
Contributors
5
Replies
24
Views
7 Months
Discussion Span
Last Post by aditya_23
0

I don't think this is a homework assignment. This looks like a helpful reference guide to do various common got related operations. More like a tutorial, no?

0

Looks like a difficulty with foreign language to me. OP also PM'd me with the same code and said "this is shell secript how to converted to the javacode how ?" so I understood that to mean "How do I convert this script to Java code?". Maybe I misunderstood?

Edited by JamesCherrill

-1

How do I convert this script to Java code

Votes + Comments
Ignores the rules, despite repeated advice. Zero effort, just "gimme"
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.