Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created October 9, 2013 16:21
Show Gist options
  • Save matiasgarciaisaia/6903934 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/6903934 to your computer and use it in GitHub Desktop.
hg-to-git.sh sample usage
$ cat my/repository/.hg/branch
default
$ curl https://gist.github.com/matiasgarciaisaia/6903416/raw/hg-to-git.sh -o hg-to-git.sh
$ chmod +x hg-to-git.sh
$ [ -d new-repository ] || echo "new-repository does not exist"
new-repository does not exist
$ ./hg-to-git.sh my/repository/ new-repository
## [ ... tons of output ... ]
$ cd new-repository
$ git branch | grep \*
* master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment