Steps :
- Create a new branch in svn repo - phani_branch
svn copy --username swarupdonepudi https://svn.riouxsvn.com/swarup-repo/branches/branch1 https://svn.riouxsvn.com/swarup-repo/branches/phani_branch -m "Creating a branch for final test"
- Checkout phani_branch
svn co --username swarupdonepudi https://svn.riouxsvn.com/swarup-repo/branches/phani_branch
- Create a new file in phani_branch - file1_for_phani_branch.txt
touch file1_for_phani_branch.txt
- Add a line "first line in file for phani_branch" to file1_for_phani_branch.txt
echo "first line in file for phani_branch" > file1_for_phani_branch.txt
- Add this new file to remote svn repo
svn add file1_for_phani_branch.txt
- Commit this with mesage "First commit for phani_branch"
svn commit -m "First commit for phani_branch"
- Create a new file in phani_branch - file2_for_phani_branch.txt
touch file2_for_phani_branch.txt
- Add another line "first line in file2 for phani_branch" to file2_for_phani_branch.txt
echo "first line in file2 for phani_branch" > file2_for_phani_branch.txt
- Commit this with mesage "Added another file for phani_branch"
svn commit -m "Added another file for phani_branch"
- Add another line "first line in file for phani_branch" to file1_for_phani_branch.txt
echo "first line in file for phani_branch" >> file1_for_phani_branch.txt
- Commit this with mesage "Added another file1 for phani_branch"
svn commit -m "Added another file1 for phani_branch"
On another machine perform conversion preferably linux box
svn2git --username swarupdonepudi https://svn.riouxsvn.com/swarup-repo --trunk branches/phani_branch --nobranches --no-minimize-url --notags
- Delete any non master branches
git branch -D trunc@2
- Create a new git repo on github : svn_repo2
https://github.com/swarupdonepudi/svn_repo2.git
- Add the remote details to the local git repo after converting it from svn
git remote add origin https://github.com/swarupdonepudi/svn_repo2.git
git push --set-upstream origin master
git push