Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

powersj/lp-fork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)