Last active
February 15, 2019 09:50
-
-
Save borissov/25eff03d06119593e0717c37b7298e76 to your computer and use it in GitHub Desktop.
Migrate form SVN to GIT and keep old and ignored files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Most important part is to create proper .gitignore file. | |
git init | |
git remote add origin NEW_GIT_REPO | |
git fetch --all | |
git reset --hard origin/master | |
git status | |
rm -rf .svn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment