Docs/Git/使用curl命令下载Gitlab中的单个文件.md
2022-10-18 16:59:37 +08:00

5 lines
237 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```bash
# token需要生成
# files后面跟文件的路径%2F为/
curl -o wep.war --header "PRIVATE-TOKEN: [token-id]" "http://[gitlabxxxx]/api/v4/projects/[project-id]/repository/files/[wep%2F20220216%2Fwep.war]/raw?ref=master"
```