mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-20 02:56:10 -07:00
GIT_TERMINAL_PROMPT
parent
ac1717259a
commit
85719d5ece
6
faq.md
6
faq.md
@ -114,9 +114,9 @@ augroup END
|
||||
|
||||
When vim-plug clones a repository, it injects `git::@` into the URL (e.g. `https://git::@github.com/junegunn/seoul256.vim.git`) which can be an issue when you want to push some changes back to the remote. So why?
|
||||
|
||||
It's a little hack to avoid username/password prompt from git when the repository doesn't exist. Such thing can happen when there's a typo in the argument, or when the repository is removed from GitHub. It looks kind of silly, but doing so is the only way I know that works on various versions of git. If you're aware of a better way to handle this, please let me know.
|
||||
It's a little hack to avoid username/password prompt from git when the repository doesn't exist. Such thing can happen when there's a typo in the argument, or when the repository is removed from GitHub. It looks kind of silly, but doing so is the only way I know that works on various versions of git. However, Git 2.3.0 introduced `$GIT_TERMINAL_PROMPT` which can be used to suppress user prompt, and vim-plug takes advantage of it and removes `git::@` when Git 2.3.0 or above is found.
|
||||
|
||||
There are two ways to override the default url pattern:
|
||||
Also, there are two ways to override the default URL pattern:
|
||||
|
||||
1. Using full git url: `Plug 'https://github.com/junegunn/seoul256.vim.git'`
|
||||
2. Or define `g:plug_url_format` for the plugins that you need to work on.
|
||||
@ -131,7 +131,7 @@ Plug 'tpope/vim-surround'
|
||||
Plug 'tpope/vim-repeat'
|
||||
```
|
||||
|
||||
See [#133](https://github.com/junegunn/vim-plug/issues/133), [#109](https://github.com/junegunn/vim-plug/issues/109), [#56](https://github.com/junegunn/vim-plug/issues/56) for more details.
|
||||
See [#168](https://github.com/junegunn/vim-plug/issues/168), [#161](https://github.com/junegunn/vim-plug/issues/161), [#133](https://github.com/junegunn/vim-plug/issues/133), [#109](https://github.com/junegunn/vim-plug/issues/109), [#56](https://github.com/junegunn/vim-plug/issues/56) for more details.
|
||||
|
||||
### Gist as plugin
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user