From 578f86e720a99f1da5116518a6a50361d403d492 Mon Sep 17 00:00:00 2001 From: jochan Date: Mon, 26 Jun 2017 08:58:10 -0700 Subject: [PATCH] Modified step 7 to push all branches and set upstreams. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40c5d67..60f47c3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ These scripts will migrate a Mercurial repository to a Git repository using hg-f 4. Before moving on, make sure that you are **absolutely sure** you no longer need to update your Git repository from your Mercurial repository. Once you perform the next steps, you **cannot** update again. 5. To strip out large files from history and delete closed branches, run `./hg2git_clean.sh `. Files larger than 40M will be stripped. This may take a while. 6. To copy .hgignore files to .gitignore, convert _some_ of the regex to globs, and commit these files for every branch, run `./hg2git_ignore.sh `. Note that this will convert the repository from bare to non-bare and check out files. -7. Set an upstream (`git remote add origin `) and push the repository (`git push -u origin master`). This may take a while. +7. Set an upstream (`git remote add origin `) and push the repository (`git push --all origin -u`). This may take a while. 8. To remove temporary files that were created during the execution of these scripts (.bak, .log, \*authors.txt, hg-fast-export files), run `git clean -df`. ## TL;DR @@ -26,5 +26,5 @@ These scripts will migrate a Mercurial repository to a Git repository using hg-f 3. Read [Instructions](#instructions) > Step 4. 4. `./hg2git_clean.sh ` 5. `./hg2git_ignore.sh ` -6. `git remote add origin && git push -u origin master` +6. `git remote add origin && git push --all origin -u` 7. `git clean -df`