Created
October 9, 2013 16:21
-
-
Save matiasgarciaisaia/6903934 to your computer and use it in GitHub Desktop.
hg-to-git.sh sample usage
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
$ 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