Skip to content

Commit c0faf65

Browse files
committed
Import form a bundle
1 parent ebd7521 commit c0faf65

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
* [Adding a project to repo using subtree](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree)
6161
* [Get latest changes in your repo for a linked project using subtree](https://github.com/git-tips/tips#get-latest-changes-in-your-repo-for-a-linked-project-using-subtree)
6262
* [Export a branch with history to the a file.](https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file)
63+
* [Import form a bundle](https://github.com/git-tips/tips#import-form-a-bundle)
6364

6465
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6566
<!-- @doxie.inject end toc -->
@@ -425,5 +426,10 @@ git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.co
425426
git bundle create <file> <branch-name>
426427
```
427428

429+
## Import form a bundle
430+
```sh
431+
git clone repo.bundle <repo-dir> -b <branch-name>
432+
```
433+
428434
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
429435
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,9 @@
239239
{
240240
"title": "Export a branch with history to the a file.",
241241
"tip": "git bundle create <file> <branch-name>"
242+
},
243+
{
244+
"title": "Import form a bundle",
245+
"tip": "git clone repo.bundle <repo-dir> -b <branch-name>"
242246
}
243247
]

0 commit comments

Comments
 (0)