Git Product home page Git Product logo

git-lp's Introduction

About

git-lp is a tool that allows you to use git to work with Launchpad.net.

Tutorial

Create a new repository for working with a single Launchpad.net project:

$ git lp init checkbox && cd checkbox

Get the initial code from Launchpad.net. This can be accelerated if you have an existing bzr branch somewhere (pass the --cache option)

$ git lp fetch

Start working on a feature/bug in a dedicated branch:

$ git lp branch feature-foo

While you want:

  • Hack on your code
  • Commit with git
  • Rebase, squash, etc

At any time you can push your branch to Launchpad.net for reviews. This will push the code to lp:~yourlaunchpadusername/project/feature-foo.

$ git lp push

You can easily react to review feedback: commit new patches, rework and amend existing patches, anything that you want to. Once you are ready share your code again just run push again. You may need to pass --overwrite to push if you've been rewriting history though (but that is okay as you're working on a merge request and it has not yet landed)

$ git lp push --overwrite

Installation

This has been tested on Ubuntu 12.10 Quantal with bzr trunk but I believe it should apply cleanly to packaged versions as well.

  1. Download https://raw.github.com/zyga/git-lp/master/bzr.patch

  2. Apply it to your system (reinstall bzr to revert)

    You may want to read the outcome of this merge request to know if this patch has been accepted or well reviewed by the Bazaar maintainers. Once this is fixed then you won't have to patch your bzr anymore obviously.

    https://code.launchpad.net/~zkrynicki/bzr/find_ancestors/+merge/127610

  3. Put git-lp (https://raw.github.com/zyga/git-lp/master/git-lp) somewhere in your PATH.

  4. Install bzr-fastimport (sudo apt-get install bzr-fastimport) If you're using Ubuntu 15.10 or newer, chances are that bzr-fastimport is not available in the archive. You can install it as a local plugin by running:

     $ mkdir -p ~/.bazaar/plugins
     $ bzr branch lp:bzr-fastimport ~/.bazaar/plugins/fastimport
    

    Make sure that python-fastimport is installed (sudo apt-get install python-fastimport)

git-lp's People

Contributors

codersquid avatar kissiel avatar slimjim777 avatar zyga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

git-lp's Issues

different checksum

I'm seeing 'be697c0baccfae2641fd1ed036e96334' as the checksum for my patched file. different version of bzr? I have 2.6.0+bzr6595-6ubuntu1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.