How long does github forward renamed/moved repos? #22669
-
Hi! I’m in a situation where I’d like to move repos from one organization to another (and in some cases rename as well). I’ve heard Github will automatically forward git requests for the old repo location to the new one (in cloning, etc.). Does anybody know how long the forwarding will happen for or is it permanent? Thanks for any help anyone can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
From this help page: https://help.github.com/articles/transferring-a-repository-owned-by-your-organization/ :
|
Beta Was this translation helpful? Give feedback.
-
I got a response from Github staff. May help others wondering in the future:
Sounds like its indefinite unless a same-naned repo is created at the old location :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Had the same question today. While being curious I created a new repo with the old name and then I deleted it. The redirect took place again. |
Beta Was this translation helpful? Give feedback.
-
And how can I disable the redirection in the old location (to prevent people using the old repo ) ? |
Beta Was this translation helpful? Give feedback.
-
This issue mentions So, I did the following test:
Result: The asset can be accessed using links that contain both the old and new repo names! However, I wasn't sure if this was truly due to URL redirection, or whether it was due to GitHub's servers caching the file somehow. (?) So, I did another quick test:
Result: The "old repo name" returns the updated asset. So, yes! This redirection applies not just to |
Beta Was this translation helpful? Give feedback.
I got a response from Github staff. May help others wondering in the future:
Sounds like its indefinite unless a same-naned repo is created at the old location :slight_smile: