-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean up deleted repo's? #54
Comments
There's nothing built-in to do this, and it seems a bit dangerous to add because a temporary issue with the remote (like a permissions issue) would cause your local copy to get deleted. You also need to consider situations with multiple remotes or when we have branches out of sync with the remote we can't update. Basically, I'm not sure what a "safe" check for this would look like. |
Maybe I'm not using this application for it's intended purpose? At my work, we have around 500 repos. With that many, they get moved or deleted fairly often and the only way for me to fix it is to find them by hand and manually delete them. Do you have any suggestions for how I can remove these deleted repos? |
Something like this will work:
Just keep in mind that it's inherently very dangerous if you are ever unable to access the remote for some reason. |
At the very least you can check that the remote server answers on port 22 or 443 (depending on if you use ssh or https) by grepping the config in |
Ha. That's a creative approach. Thank you. I'm currently running gitup on a Windows machine so I'll install it on a unix machine and give this a shot. Thanks for taking the time to answer the question.
|
gitup -n will clean up it's bookmarks file for repo's that are no longer there. |
Is there any way to have this automatically delete repositories that no longer exist?
Example of current:
ke sure you have the correct access rights and the repository exists.
Updating master: up to date.
The text was updated successfully, but these errors were encountered: