5

I've been using etckeeper on my Digital Ocean droplet for sometime and have made numerous changes to the /etc since that time.

I now realize that i've been using bzr all this time and would like to switch to git; but fear that i shall loose all the incremental changes i've made to my /etc directory.

Is there ANY way to not only switch from bzr to git, but convert bzr's incremental changes to git as well?

Thanks!

Quasaur
  • 165

1 Answers1

2

You can export the bzr history into git by

cd /etc
git init
bzr fast-export --plain . | git fast-import

Then just reconfigure etckeeper to use git (set VCS="git" in /etc/etckeeper/etckeeper.conf).

The above commands require the fastimport plugins to be installed in bzr and git.