git转bzr上传到launchpad

先决是要安装git和bzr。当然还需要安装bzr-fastimport( sudo apt-get install bzr-fastimport )。

首先去到git项目目录下将git项目导出为单一文件:

git fast-export –all > filename

再将这个文件转换为bzr,存放在一个目录内( foldername ):

bzr fast-import filename foldername

然后参照资料,push到launchpad上。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s