-
Notifications
You must be signed in to change notification settings - Fork 125
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
Warn the user if git-sweep notices that a repo's endpoint is an HTTP URL instead of a git URL #14
Comments
This is because you cloned the repo over https instead of git, so it cant use your git credentials to do the sweep, prompting you to enter your credentials with every git remote rm origin
git remote add origin [email protected]:someuser/somerepo |
This makes sense to me. Let me try properly setting up the remote with a sample repository and ensure that GitHub for Mac still functions. |
I wonder if the Mac client silently leads you to use the https address. If that were the case, it might be worth adding a provision for this. |
I'm pretty sure it does, I just used the default settings. |
You can manually edit your .git/config for the repo on your local machine to switch it back to the git:// URL |
I think a warning if git-sweep notices the remote is not a git endpoint would be enough. Everything else seems out of scope for such a specific tool |
This probably works. I used the
+1, going to rename this issue. |
A warning is a good idea, at least you then wouldn't get trapped in a terrible "Enter your password" loop. Adding this to the next milestone. |
Gut push origin |
My repo was created using GitHub for Mac using the default settings. When I
git sweep cleanup
, it prompts me to authenticate every time it deletes a branch.The text was updated successfully, but these errors were encountered: