tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.21k stars 429 forks source link

who can tell me about the url prefix 'https://git::@github.com' #88

Closed liangguohuan closed 8 years ago

liangguohuan commented 8 years ago

I know about how to clone from github via https://github.com/... or git@github.com/..., but https://git::@github.com/... is the first time.

I wrote a small plugin for myself, then i install my plugin via tpm. I cd my plugin where it is, then i do some local commits and try to push to github, i found i can't do it, it trigger fatal error: remote: Invalid username or password.

who can tell me about this. i google it, but i can't find any info.

martinbeentjes commented 8 years ago

Because cloning is the same as downloading a repository (well, not completely) so you do not need any login credentials to do so. However, if you want to push commits to the remote, you need to be authorized. Therefore one needs to add an username and password.

If you want to work on your own plugin, please just use one directory for development. I prefer not to use the cloned version in the plugins folder for development. I am currently working on a small improvement so we can add version tags to the repository (by adding @v2.0.0 in your tmux configuration file).

(I have a Git folder in my home folder containing all repositories I ever created or worked on. I never ever do work in any other place than there).

liangguohuan commented 8 years ago

OK, I got it now. Thx!

martinbeentjes commented 8 years ago

As your question is answered, can you close this issue? Thanks!