Reminder to all repository users: Please do not add , commit and push any data files to your remote git repositories. The disk space the Git server is limited, it wasn't dimensioned to host anything else than code. Solely your code files need versioning. The data inputs/outputs don't. A good idea is to do "git add" individually on each file you want to commit, to avoid versioning unwanted content.

Snippets

Snippets are little bits of code or text.

GitLab Snippet

There are 2 types of snippets - project snippets and personal snippets.

Comments

With GitLab Snippets you engage in a conversation about that piece of code, facilitating the collaboration among users.

Note: Comments on snippets was introduced in GitLab Community Edition 9.2.

Project snippets

Project snippets are always related to a specific project - see Project features for more information.

Personal snippets

Personal snippets are not related to any project and can be created completely independently. There are 3 visibility levels that can be set (public, internal, private - see Public Access for more information).

Downloading snippets

You can download the raw content of a snippet.

By default snippets will be downloaded with Linux-style line endings (LF). If you want to preserve the original line endings you need to add a parameter line_ending=raw (eg. https://gitlab.com/snippets/SNIPPET_ID/raw?line_ending=raw). In case a snippet was created using the GitLab web interface the original line ending is Windows-like (CRLF).