advanced settings option: set use SSH as default remote when checking out PR #190
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#190
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For example when I attempt to run
tea pr checkout 188
in this repo, it useshttps://gitea.com/noerw/tea.git:pr-details
as my remote, whereas I'd prefer it to use an SSH remote.@techknowlogick I'm revisiting this issue, as we're considering to change the default back to https again..
What is your rationale for checking out PRs via SSH?
I clone via SSH which means that git doesn't have any HTTPS credentials saved for cloning via HTTPS and since I have 2fa I'd need to generate an app token.
Perhaps rather than setting SSH or HTTPS as default, tea could detect which protocol is used and check out that way?
@techknowlogick ok, thanks for the context.
Yeah, that's what i'm going to implement;
When you use tea, you should have an apptoken (stored in tea config file).
So this should not be an issue. Or is there something different with 2FA and app tokens?
I personally like to use SSH when invoking git command and use HTTPS because of Gitea API.