Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

a wrapper of git command

Project Description



gitcmd is a wrapper of ‘git’ command , it can interact with git command where need username and password.


The quick way:

pip install gitcmd


Clone git respositroy

from gitcmd import GitCmd
clone_to = 'mydir'
url = ""
ge = GitCmd(work_dir=clone_to, url=url)

if you clone with ssh, you may need config ssh key at first.

Clone gitlab with username,password

from gitcmd import GitCmd
import os
ge = GitCmd(work_dir="clone_to_where", url="", user="user",pwd="pwd")

# work dir should be either empty or not exists

# after repository was cloned to local , you can execute other commands
ge.execute("git diff ...")

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(4.9 kB) Copy SHA256 Hash SHA256
py2.py3 Wheel Oct 30, 2015
(3.5 kB) Copy SHA256 Hash SHA256
Source Oct 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting