From 3cdee951c5f347f4985a8d8b0d7a8c2983c29706 Mon Sep 17 00:00:00 2001 From: Guido Lena Cota Date: Thu, 1 Oct 2020 21:23:32 +0200 Subject: [PATCH] git-bundle: add page (#4364) --- pages/common/git-bundle.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/git-bundle.md diff --git a/pages/common/git-bundle.md b/pages/common/git-bundle.md new file mode 100644 index 0000000000..577bf8852f --- /dev/null +++ b/pages/common/git-bundle.md @@ -0,0 +1,32 @@ +# git bundle + +> Package objects and references into an archive. +> More information: . + +- Create a bundle file that contains all objects and references of a specific branch: + +`git bundle create {{path/to/file.bundle}} {{branch_name}}` + +- Create a bundle file of all branches: + +`git bundle create {{path/to/file.bundle}} --all` + +- Create a bundle file of the last 5 commits of the current branch: + +`git bundle create {{path/to/file.bundle}} -{{5}} {{HEAD}}` + +- Create a bundle file of the latest 7 days: + +`git bundle create {{path/to/file.bundle}} --since={{7.days}} {{HEAD}}` + +- Verify that a bundle file is valid and can be applied to the current repository: + +`git bundle verify {{path/to/file.bundle}}` + +- Print to the standard output the list of references contained in a bundle: + +`git bundle unbundle {{path/to/file.bundle}}` + +- Unbundle a specific branch from a bundle file into the current repository: + +`git pull {{path/to/file.bundle}} {{branch_name}}`