Import form a bundle

This commit is contained in:
Hemanth.HM 2015-09-13 21:25:07 +05:30
parent ebd7521a49
commit c0faf65fc9
2 changed files with 10 additions and 0 deletions

View File

@ -60,6 +60,7 @@
* [Adding a project to repo using subtree](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree)
* [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)
* [Export a branch with history to the a file.](https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file)
* [Import form a bundle](https://github.com/git-tips/tips#import-form-a-bundle)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -425,5 +426,10 @@ git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.co
git bundle create <file> <branch-name>
```
## Import form a bundle
```sh
git clone repo.bundle <repo-dir> -b <branch-name>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -239,5 +239,9 @@
{
"title": "Export a branch with history to the a file.",
"tip": "git bundle create <file> <branch-name>"
},
{
"title": "Import form a bundle",
"tip": "git clone repo.bundle <repo-dir> -b <branch-name>"
}
]