Last active
April 6, 2021 13:41
-
-
Save josejuansanchez/b2f757ce0d3effca47ce to your computer and use it in GitHub Desktop.
Revisions
-
josejuansanchez renamed this gist
Mar 13, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
josejuansanchez renamed this gist
Mar 13, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
josejuansanchez revised this gist
Mar 13, 2015 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 # 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 git push -u origin master ``` -
josejuansanchez created this gist
Mar 13, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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