Skip to content

Instantly share code, notes, and snippets.

@borissov
Last active February 15, 2019 09:50
Show Gist options
  • Save borissov/25eff03d06119593e0717c37b7298e76 to your computer and use it in GitHub Desktop.
Save borissov/25eff03d06119593e0717c37b7298e76 to your computer and use it in GitHub Desktop.
Migrate form SVN to GIT and keep old and ignored files.
#!/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