Clone and modify a Git project - RichardForshaw/dev-tools-blog GitHub Wiki

Cloning and Modifying an existing Git project

The beauty of open source is that we can all share projects. But what if you find a feature that hasn't been released yet, or that you need to modify?

Installing non-release versions

You can do this in pip by running

pip install -e git://github.com/UserName/ProjectName.git#egg=ProjectName

This will download into a 'src' folder which is available from your python path.

Everything after pip install can also be put into the requirements.txt file.

When you do this you can then modify the code and push things back to your repo.