Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
32341db8
Commit
32341db8
authored
4 years ago
by
Marcia Ramos
Committed by
Achilleas Pipinellis
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs .gitignore API improvements
parent
be07e02c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
doc/api/templates/gitignores.md
doc/api/templates/gitignores.md
+6
-7
No files found.
doc/api/templates/gitignores.md
View file @
32341db8
...
...
@@ -7,13 +7,12 @@ type: reference
# .gitignore API
In GitLab, there is an API endpoint available for
`.gitignore`
. For more
information on
`gitignore`
, see the
[
Git documentation
](
https://git-scm.com/docs/gitignore
)
.
In GitLab, the
`/gitignores`
endpoint returns a list of Git
`.gitignore`
templates. For more information,
see the
[
Git documentation for `.gitignore`
](
https://git-scm.com/docs/gitignore
)
.
##
List
`.gitignore` templates
##
Get all
`.gitignore` templates
Get a
ll
`.gitignore`
templates.
Get a
list of all
`.gitignore`
templates:
```
plaintext
GET /templates/gitignores
...
...
@@ -112,9 +111,9 @@ Example response:
]
```
##
S
ingle `.gitignore` template
##
Get a s
ingle `.gitignore` template
Get a single
`.gitignore`
template
.
Get a single
`.gitignore`
template
:
```
plaintext
GET /templates/gitignores/:key
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment