Skip to content

Commit ebd7521

Browse files
committed
git bundle
1 parent 199d6ff commit ebd7521

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
@@ -59,6 +59,7 @@
5959
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
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)
62+
* [Export a branch with history to the a file.](https://github.com/git-tips/tips#export-a-branch-with-history-to-the-a-file)
6263

6364
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6465
<!-- @doxie.inject end toc -->
@@ -419,5 +420,10 @@ git subtree add --prefix=<directory_name>/<project_name> --squash git@github.com
419420
git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master
420421
```
421422

423+
## Export a branch with history to the a file.
424+
```sh
425+
git bundle create <file> <branch-name>
426+
```
427+
422428
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
423429
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,5 +235,9 @@
235235
{
236236
"title": "Get latest changes in your repo for a linked project using subtree",
237237
"tip": "git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master"
238+
},
239+
{
240+
"title": "Export a branch with history to the a file.",
241+
"tip": "git bundle create <file> <branch-name>"
238242
}
239243
]

0 commit comments

Comments
 (0)