This module provides high-level tools for managing Git repositories.
See also
Require the git command-line tool.
Example:
from fabric.api import run
from fabtools import require
require.git.command()
run('git --help')
Require a working copy of the repository from the remote_url.
The path is optional, and defaults to the last segment of the remote repository URL, without its .git suffix.
If the path does not exist, this will clone the remote repository and check out the specified branch.
If the path exists and update is True, it will fetch changes from the remote repository, check out the specified branch, then merge the remote changes into the working copy.
If the path exists and update is False, it will only check out the specified branch, without fetching remote changesets.
Parameters: |
|
---|