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.'

Do provide evidence of having done some work yourself if posting questions from school or work assignments.

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?

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?

Latest PM: "plz anyone prepare the code"
I guess that's pretty clear.
I advised OP of our policy re showing effort (again)

How do I convert this script to Java code

commented: Ignores the rules, despite repeated advice. Zero effort, just "gimme" -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.