Migration of Bazaar to Git: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
Line 14: Line 14:
* Costs of hosting a private repository of git on Launchpad, github and on other available git hosting platforms need to be looked at.
* Costs of hosting a private repository of git on Launchpad, github and on other available git hosting platforms need to be looked at.
* Investigate how Launchpad Git repositories work. Investigate if Github, other git hosting platforsm or own hosted gitlab is more suitable.
* Investigate how Launchpad Git repositories work. Investigate if Github, other git hosting platforsm or own hosted gitlab is more suitable.
** see [[Investigation of Launchpad Git Repositories]]
** see [[#Investigation of Launchpad Git Repositories]]
** investigate the varying features these hosting platforms have to offer
** investigate the varying features these hosting platforms have to offer
* Integrate git in VisualStudio and SharpDevelop
* Integrate git in VisualStudio and SharpDevelop
Line 27: Line 27:
* [[How to work with git on the command line]]
* [[How to work with git on the command line]]
* [[How to work with git through the GUI on Windows]]
* [[How to work with git through the GUI on Windows]]
== Investigation of Launchpad Git Repositories ==
* see https://help.launchpad.net/Code/Git
vi ~/.gitconfig
  [url "git+ssh://tpokorra@git.launchpad.net/"]
        insteadof = lp:
  [url "git+ssh://tpokorra@git.launchpad.net/~tpokorra/+git/"]
        insteadof = lpme:
mkdir test
cd test
git init
vi Readme.txt
git add Readme.txt
git commit -a -m "initial commit"
git remote add origin lpme:test
git push --set-upstream origin master
see result at:
* https://code.launchpad.net/~tpokorra/+git
* https://code.launchpad.net/~tpokorra/+git/test
* https://git.launchpad.net/~tpokorra/+git/test/


== useful git commands ==
== useful git commands ==
  # do not pull the whole history, but just the latest commit. save download bandwidth
  # do not pull the whole history, but just the latest commit. save download bandwidth
  git clone --depth=1 https://github.com/openpetra/openpetra.git myopenpetradirectory
  git clone --depth=1 https://github.com/openpetra/openpetra.git myopenpetradirectory

Revision as of 12:03, 10 September 2015

Description

This is just a proposal!

The idea is that the development and improvement of bazaar is not reliable anymore. See for this:

In 2009, we actually initially used Git for hosting the source code of OpenPetra! We still have some documentation for that in the wiki:

TODO

  • Costs of hosting a private repository of git on Launchpad, github and on other available git hosting platforms need to be looked at.
  • Investigate how Launchpad Git repositories work. Investigate if Github, other git hosting platforsm or own hosted gitlab is more suitable.
  • Integrate git in VisualStudio and SharpDevelop
  • Document conversion from bzr to git and keeping the history. see http://www.pokorra.de/2013/10/mirror-a-bazaar-repository-from-launchpad-to-github/
  • Jenkins: use git instead of bzr
  • nant: changes to import translations
  • nant: changes to use current bzr version number in the petra client
  • Time estimation for switch over
  • document benefits of a switch over

Document usage of git on these pages:

Investigation of Launchpad Git Repositories

vi ~/.gitconfig
  [url "git+ssh://tpokorra@git.launchpad.net/"]
       insteadof = lp:
  [url "git+ssh://tpokorra@git.launchpad.net/~tpokorra/+git/"]
       insteadof = lpme:
mkdir test
cd test
git init
vi Readme.txt
git add Readme.txt
git commit -a -m "initial commit"
git remote add origin lpme:test
git push --set-upstream origin master

see result at:

useful git commands

# do not pull the whole history, but just the latest commit. save download bandwidth
git clone --depth=1 https://github.com/openpetra/openpetra.git myopenpetradirectory