2

Got a Bitbucket git repository which has out-grown its original scope so that the repo name no longer represent the content.

Can I create an 'alias repository' which will point to the existing one, but with a better name, while keeping the old name working to avoid updating existing checkouts, CI systems, etc.?

I vision here two repo names, but a single repo state which is available under both names.

lmat - Reinstate Monica
  • 7,289
  • 6
  • 48
  • 62
Uri Cohen
  • 3,488
  • 1
  • 29
  • 46

1 Answers1

0

You can try and:

  • clone the repo
  • rename your current BitBucket repo
  • create a new one, re-using the name of the original repo
  • reset your local clone to the right SHA1 (loosing the part of the recent history that does not interest you)
  • pushing the local repo to the newly created one.
Uri Cohen
  • 3,488
  • 1
  • 29
  • 46
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I visioned here two repo names, but a single repo state which is available under both names. – Uri Cohen Nov 20 '18 at 12:00
  • @UriCohen I don't know of two names for *one* repo. I am more familiar with two different repos (since the repo hosting server will know how to avoid duplication of common SHA1s) – VonC Nov 20 '18 at 16:23