Skip to content

Instantly share code, notes, and snippets.

@lucasapoena
Created July 29, 2021 15:38
Show Gist options
  • Save lucasapoena/914fc0112e9c5772902b765936508dd5 to your computer and use it in GitHub Desktop.
Save lucasapoena/914fc0112e9c5772902b765936508dd5 to your computer and use it in GitHub Desktop.
Convertendo repositório SVN para o GIT no Windows
SET projeto=NomeProjeto
SET urlPathSVN=https://svn.seuservidor.com.br/svn/%projeto%
SET pathFolderSVN=C:\Projetos\SVNtoGIT
SET git_userName=lucasapoena
mkdir %pathFolderSVN%\%projeto%
cd %pathFolderSVN%\%projeto%
git svn init %urlPathSVN% --no-metadata
git svn fetch
git remote add origin [email protected]:%git_userName%/%projeto%.git
git push -u origin master
@lucasapoena
Copy link
Author

Script para conversão de repositorio SVN para GIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment