
It's not necessarily obvious how to perform a mirror, so add a recipe which tells what git does as well as provide example code of how to perform the same steps in pygit2.
1.2 KiB
1.2 KiB
pygit2 Recipes
A list of some standard git commands and their pygit2 equivalents. This document is a work in progress, and is organized according to the git man page.
High Level Commands
Main porcelain commands
git-cherry-pick (Apply the changes introduced by some existing commits.) <recipes/git-cherry-pick> git-init (Create an empty git repository or reinitialize an existing one.) <recipes/git-init> git-log (Show commit logs.) <recipes/git-log> git-show (Show various types of objects.) <recipes/git-show> git-tag (Create, list, delete or verify a tag object signed with GPG.) <recipes/git-tag> git clone --mirror (Clone with a mirroring configuration) <recipes/git-clone-mirror>