1
0
Fork 0

Modified step 7 to push all branches and set upstreams.

This commit is contained in:
jochan 2017-06-26 08:58:10 -07:00
parent 9fd3949348
commit 578f86e720
1 changed files with 2 additions and 2 deletions

View File

@ -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 <source> <target> <bfg-cleaner>`. 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 <target>`. Note that this will convert the repository from bare to non-bare and check out files.
7. Set an upstream (`git remote add origin <url>`) and push the repository (`git push -u origin master`). This may take a while.
7. Set an upstream (`git remote add origin <url>`) 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 <source> <target> <bfg-cleaner>`
5. `./hg2git_ignore.sh <target>`
6. `git remote add origin <url> && git push -u origin master`
6. `git remote add origin <url> && git push --all origin -u`
7. `git clean -df`