mirror of
https://github.com/namibia/tips.git
synced 2024-12-31 21:21:51 +00:00
git bundle
This commit is contained in:
parent
199d6ff42e
commit
ebd7521a49
@ -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)
|
||||
|
||||
<!-- Don’t 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>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -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>"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user