1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-31 21:21:51 +00:00

git bundle

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

View File

@ -59,6 +59,7 @@
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
* [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)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -419,5 +420,10 @@ git subtree add --prefix=<directory_name>/<project_name> --squash git@github.com
git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master
```
## Export a branch with history to the a file.
```sh
git bundle create <file> <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

@ -235,5 +235,9 @@
{
"title": "Get latest changes in your repo for a linked project using subtree",
"tip": "git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master"
},
{
"title": "Export a branch with history to the a file.",
"tip": "git bundle create <file> <branch-name>"
}
]