简体   繁体   中英

Creating an alias for a bitbucket git repository

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM