Skip to content

Commit e60ff92

Browse files
authored
Added excluding .git files to FAQ
1 parent 851cc8a commit e60ff92

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ I recommend you use a secrets to store your FTP_USERNAME and FTP_PASSWORD.
5151
Custom lftp arguments, this field is passed through directly into the lftp script. See [lftp's website](https://lftp.yar.ru/lftp-man.html) for all options.
5252
You can use as many arguments as you want, seperate them with a space
5353

54-
| Argument | Description |
55-
|---------------------|----------------------------------------------------------------------|
56-
| `--delete` | Delete files not present at the source |
57-
| `--transfer-all` | Transfer all files, even seemingly the same as the target site |
58-
| `--dry-run` | Ouputs files that will be modified without making any actual changes |
59-
| `--include=` | Include matching files |
60-
| `--exclude=` | Exclude matching files |
61-
| `--include-glob=GP` | Include matching files (GP is a glob pattern, e.g. `*.zip`) |
62-
| `--exclude-glob=GP` | Exclude matching files (GP is a glob pattern, e.g. `*.zip`) |
63-
| `--no-empty-dirs` | Don't create empty directories |
54+
| Argument | Description |
55+
|------------------------|------------------------------------------------------------------------------------------------------|
56+
| `--delete` | Delete files not present at the source |
57+
| `--transfer-all` | Transfer all files, even seemingly the same as the target site |
58+
| `--dry-run` | Ouputs files that will be modified without making any actual changes |
59+
| `--include=File.txt` | Include matching files, you can add multiple `--include` |
60+
| `--exclude=File.txt` | Exclude matching files, you can add multiple `--exclude` |
61+
| `--include-glob=*.zip` | Include matching files, you can add multiple `--include-glob` |
62+
| `--exclude-glob=*.zip` | Exclude matching files, you can add multiple `--exclude-glob` |
63+
| `--no-empty-dirs` | Don't create empty directories |
6464

6565

6666
## Common Examples
@@ -126,6 +126,8 @@ jobs:
126126
1. `rm: Access failed: 553 Prohibited file name: ./.ftpquota`
127127
* The `.ftpquota` file is created by some FTP Servers and cannot be modified by the user
128128
* **Fix:** Add `--exclude=.ftpquota` to your ARGS
129+
2. How do I exclude .git files from the publish
130+
* **Fix:** Add `--exclude-glob=**/.git*/** --exclude-glob=**/.git**` to your ARGS
129131

130132
#### Deprecated main.workflow config (used for beta/legacy apps that haven't been migrated to .yaml workflows yet)
131133
```json

0 commit comments

Comments
 (0)