powersj / lp-fork

Clone and fork LP Repos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Launchpad Fork

Clone and create forks of Launchpad repos.

Usage

All that is necessary is to provide the url to the git repo the user wishes to fork:

lp-fork https://git.launchpad.net/curtin

Accepts URLs in the form of:

The "lp:" shortcut can be setup in the user's .gitconfig by adding the following:

[url "git+ssh://powersj@git.launchpad.net/"]
    insteadof = lp:

The "git://" URLs are not supported.

Remotes

After creating the fork the user will be left with the origin set to the original upstream location and a $LP_USER remote for the fork. Here is an example:

$ lp-fork lp:curtin
🍴 Forking Launchpad Repo
src: lp:curtin
dst: lp:~powersj/curtin
Resolving deltas |################################| 17390/17390
Resolving deltas |################################| 220/220
$ cd curtin
$ git remote -v
origin  git+ssh://powersj@git.launchpad.net/curtin (fetch)
origin  git+ssh://powersj@git.launchpad.net/curtin (push)
powersj git+ssh://powersj@git.launchpad.net/~powersj/curtin (fetch)
powersj git+ssh://powersj@git.launchpad.net/~powersj/curtin (push)

About

Clone and fork LP Repos

License:GNU General Public License v3.0


Languages

Language:Python 92.9%Language:Makefile 7.1%