Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active April 6, 2021 13:41
Show Gist options
  • Select an option

  • Save josejuansanchez/b2f757ce0d3effca47ce to your computer and use it in GitHub Desktop.

Select an option

Save josejuansanchez/b2f757ce0d3effca47ce to your computer and use it in GitHub Desktop.

Revisions

  1. josejuansanchez renamed this gist Mar 13, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. josejuansanchez renamed this gist Mar 13, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. josejuansanchez revised this gist Mar 13, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -24,11 +24,13 @@ git commit -m "Imported bazaar to git" # Do a commit
    # 4. Create the repository on GitHub
    In this step you will get the URL of the repository.

    * Example: https://github.com/josejuansanchez/p2psp.git
    * _Example_: https://github.com/josejuansanchez/p2psp.git

    # 5. Push the repository from the command line
    *Remember*: You have to change the URL, and use the URL of your repository.

    ```
    git remote add origin https://github.com/josejuansanchez/p2psp.git # You have to change the URL
    git remote add origin https://github.com/josejuansanchez/p2psp.git
    git push -u origin master
    ```

  4. josejuansanchez created this gist Mar 13, 2015.
    38 changes: 38 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    # 1. Install `bzr` and `bzr-fastimport`
    ```
    sudo apt-get install bzr
    sudo apt-get install bzr-fastimport
    ```

    # 2. Get the `trunk` branch from launchpad
    ```
    bzr branch lp:p2psp
    ```

    # 3. Inside the directory of your local branch do the following
    ```
    git init # Initialise a new git repo
    bzr fast-export --plain . | git fast-import # Import Bazaar history into Git
    rm -rf .bzr # This file is unused in git
    rm -rf .bzrignore # This file is unused in git
    git add -A # Add the files to git
    git commit -m "Imported bazaar to git" # Do a commit
    ```

    # 4. Create the repository on GitHub
    In this step you will get the URL of the repository.

    * Example: https://github.com/josejuansanchez/p2psp.git

    # 5. Push the repository from the command line
    ```
    git remote add origin https://github.com/josejuansanchez/p2psp.git # You have to change the URL
    git push -u origin master
    ```

    # 6. Result
    You can check the result in:

    * https://github.com/josejuansanchez/p2psp