Purge All Releases #23376
-
Ok so, is there any way to purge all the releases/tags at once? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
I use
note |
Beta Was this translation helpful? Give feedback.
-
I’m pretty nervous about that. But anyway thank you ❤️ |
Beta Was this translation helpful? Give feedback.
-
I use this code frequently (which is why it’s a real script). Basically I fork a repository and then immediately run this script against the fork. But since I’m usually using it against a fork, if I want a branch back, I can pull it from the original repository. |
Beta Was this translation helpful? Give feedback.
-
Would you mind checking this repo ? |
Beta Was this translation helpful? Give feedback.
-
Destroying all tags (locally) and then updating your origin accordingly should do the trick without deleting any branches — GH releases are tag-based, so no tags no releases. Just ensure that your local close is set to track tags too. |
Beta Was this translation helpful? Give feedback.
-
tajmone:
I’ll try it :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
That worked actually,
|
Beta Was this translation helpful? Give feedback.
-
A great thanks to @jsoref and @tajmone 😉 |
Beta Was this translation helpful? Give feedback.
That worked actually,
I ran this command: