File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77Repo type and address is [ RFC3986] ( https://datatracker.ietf.org/doc/html/rfc3986 ) style URLs.
88You may recognize this from ` pip ` 's [ VCS URL] format.
99
10- [ VCS URL ] : https://pip.pypa.io/en/latest/topics/vcs-support/
10+ [ vcs url ] : https://pip.pypa.io/en/latest/topics/vcs-support/
1111
12- (git-remote-ssh-git)=
12+ ## Config locations
1313
14- ## SSH Git URLs
14+ You can place the file in one of three places:
1515
16- For git remotes using SSH authorization such as ` git+git@github.com:tony/kaptan.git ` use ` git+ssh ` :
16+ 1 . Home: _ ~ /.vcspull.yaml_
17+ 2 . [ XDG] home directory: ` $XDG_CONFIG_HOME/vcspull/ `
1718
18- ``` console
19- git+ssh://git@github.com/tony/kaptan.git
19+ Example: _ ~ /.config/vcspull/myrepos.yaml_
20+
21+ ` XDG_CONFIG_HOME ` is often _ ~ /.config/vcspull/_ , but can vary on platform, to check:
22+
23+ ``` console
24+ $ echo $XDG_CONFIG_HOME
25+ ```
26+
27+ 3 . Anywhere (and trigger via ` vcspull sync -c ./path/to/file.yaml sync [repo_name] ` )
28+
29+ [ xdg ] : https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
30+
31+ ## Schema
32+
33+ ``` {warning}
34+
35+ This structure is subject to break in upcoming releases.
36+ ```
37+
38+ ``` yaml
39+ ~/workdir/ :
40+ repo_name :
41+ remotes :
42+ origin : git_repo_url
2043` ` `
2144
22- ## Examples
45+ ### Examples
2346
2447` ` ` ` {tab} Simple
2548
26- _~/.vcspull.yaml_:
27-
2849` ` ` {literalinclude} ../../examples/remotes.yaml
2950:language : yaml
3051
3152` ` `
3253
33- Then type :
54+ To pull _kaptan_ :
3455
3556` ` ` console
3657$ vcspull sync kaptan
@@ -55,7 +76,7 @@ config showing off every current feature and inline shortcut available.
5576
5677**Code scholar**
5778
58- This `.vcspull.yaml` is used to checkout and sync multiple open source
79+ This file is used to checkout and sync multiple open source
5980configs.
6081
6182YAML:
7394
7495generation
7596```
97+
98+ ## Caveats
99+
100+ (git-remote-ssh-git)=
101+
102+ ### SSH Git URLs
103+
104+ For git remotes using SSH authorization such as ` git+git@github.com:tony/kaptan.git ` use ` git+ssh ` :
105+
106+ ``` console
107+ git+ssh://git@github.com/tony/kaptan.git
108+ ```
You can’t perform that action at this time.
0 commit comments