Skip to content

Instantly share code, notes, and snippets.

@popthestack
Created March 17, 2010 18:03
Show Gist options
  • Save popthestack/335519 to your computer and use it in GitHub Desktop.
Save popthestack/335519 to your computer and use it in GitHub Desktop.
git clone git://repo.or.cz/fast-export.git
mkdir fast-export/log
mkdir your_new_git_repo
cd !$
git init
../fast-export/hg-fast-export.sh --force -r "../path_to/hg_repo" &> "../fast-export/log/export_log"
git gc --aggressive &>/dev/null &
# wait. it may take a while for the git gc command to finish even though it looks like it finished quickly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment