Skip to content
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

[feature request] option to set fetch url to https and push url to ssh #8

Open
pinage404 opened this issue Jan 29, 2023 · 3 comments
Open

Comments

@pinage404
Copy link

Thanks for your plugin, it is useful !


As a lazy user who works mostly with public repositories, I don't want to type my SSH key passphrase when I fetch

I use to set the fetch remote's url to https and the push remote's url to ssh

Like this :

git remote --verbose
origin  https://gitlab.com/pinage404/omf_pkg_enlarge_your_git_alias.git (fetch)
origin  [email protected]:pinage404/omf_pkg_enlarge_your_git_alias.git (push)

I would like to have an option to do this

@BarbzYHOOL
Copy link
Contributor

a bit off topic, but you could have a ssh-agent and only decipher once the ssh key per session

@pinage404
Copy link
Author

i prefer to have to type my password before doing push, this prevents me to do mistakes with misclick

@derekstavis
Copy link
Member

I like this idea, could do a flag like gityaw [-p|--push]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants