Skip to content

Instantly share code, notes, and snippets.

@michaelwills
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelwills/9fdf68eeecfa7ce5c706 to your computer and use it in GitHub Desktop.
Save michaelwills/9fdf68eeecfa7ce5c706 to your computer and use it in GitHub Desktop.
Pulling a bzr repo for use in git
#from http://paste.ubuntu.com/10621984/
# [10:01] <marcoceppi> my_chiguai: we kind of abandonded keeping them in sync as we work towards a better charm store model
# [10:02] <marcoceppi> my_chiguai: you can follow these instructions to convert a bzr repo a git one if that better suites your workflow
# [10:03] <marcoceppi> my_chiguai: http://paste.ubuntu.com/10621984/
# [10:03] <marcoceppi> my_chiguai: you may also need to run "git reset --hard" at the end
git init
bzr fast-export --plain . | git fast-import
git checkout -f master
rm -rf .bzr/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment