Create, open or export local repositories.

git_init() git_find() git_info()

Create or discover a local Git repository

git_open()

Open local repository

git_archive_zip()

Git Archive

Local operations

Functions that work with local repositories.

git_commit() git_commit_all() git_commit_info() git_commit_id() git_add() git_rm() git_status() git_conflicts() git_ls() git_log()

Stage and commit changes

git_branch_list() git_branch_checkout() git_branch_create() git_branch_delete() git_branch_fast_forward() git_branch_set_upstream() git_branch_exists()

Git Branch

git_tag_list() git_tag_create() git_tag_delete() git_tag_push()

Git Tag

git_stash_save() git_stash_pop() git_stash_drop() git_stash_list()

Stashing changes

Remotes and Merging

Functions that work with remote repositories

git_remote_list() git_remote_add() git_remote_remove() git_remote_info() git_remote_set_url() git_remote_set_pushurl() git_remote_refspecs()

Git Remotes

git_fetch() git_push() git_clone() git_pull()

Push and Pull

git_merge() git_merge_stage_only() git_merge_find_base() git_merge_analysis() git_merge_abort()

Merging tools

git_rebase_list() git_rebase_commit() git_reset_hard() git_reset_soft() git_reset_mixed() git_cherry_pick() git_ahead_behind()

Cherry-Pick and Rebase

git_diff() git_diff_patch()

Git Diff

git_checkout_pull_request() git_fetch_pull_requests()

GitHub Wrappers

Configuration

See or change configuration.

git_config() git_config_global() git_config_set() git_config_global_set()

Get or set Git configuration

git_signature_default() git_signature() git_signature_parse()

Author Signature

libgit2_config()

Show libgit2 version and capabilities

user_is_configured()

Test if a Git user is configured