@@ -46,7 +46,6 @@ OPTIONS:
4646 -s | --subdir Subfolder to be cloned.
4747
4848 -t | --token Path to your access token (for private repos).
49- -u | --user Your username (for private repos).
5049
5150 -b | --branch Branch to be fetched.
5251 -v | --tag Tag of the version to be fetched.
@@ -72,12 +71,10 @@ You will need to generate an access token in order to clone private repositories
7271- Github: [ github.com/settings/tokens] ( https://github.com/settings/tokens ) .
7372- Gitlab: [ gitlab.com/-/profile/personal_access_tokens] ( https://gitlab.com/-/profile/personal_access_tokens ) .
7473
75- Save your token in a file and provide its path with the ` --token ` option, then provide your username with the ` --user ` option.
76-
77- The following example would clone a subfolder of a private repository.
74+ Save your token in a file and provide its path with the ` --token ` option, the following example would clone a subfolder of a private repository.
7875``` zsh
7976git-partial-clone --owner=owner --repo=repo --subdir=path/to/subdir \
80- --token=/path/to/your/token/file --user=username_with_access
77+ --token=/path/to/your/token/file
8178```
8279
8380# Using a configuration file
@@ -106,8 +103,6 @@ Fill in the config file ([`template.conf`](./template.conf)) with the informatio
106103### Variables for ** private repositories**
107104- ` TOKEN_PATH ` :
108105 - Path to the file containing the access token.
109- - ` GIT_USER ` :
110- - Username with access to the repository.
111106
112107### Optional variables
113108- ` BRANCH ` :
@@ -116,7 +111,7 @@ Fill in the config file ([`template.conf`](./template.conf)) with the informatio
116111 - Overrided by ` TAG_NAME ` .
117112- ` TAG_NAME ` :(tag | t)
118113 - Tag of the version to be fetched.
119- - Omit it to fetch the latest commit.
114+ - Omit it to fetch the latest commit of ` BRANCH ` .
120115 - Takes precedence over ` BRANCH ` .
121116- ` COMMIT_DEPTH ` :
122117 - Number of commits you want to fetch (useful for deployment purposes).
0 commit comments