Snippets

If you've come from GitHub, you're probably aware of gists—a method of sharing single files, parts of files, or even just chunks of code or prose. GitLab has a similar feature called Snippets, but with some extra features woven into it.

You can access Snippets by clicking the option for it in the menu at the top of the screen:

On this page, you can view your own snippets as well as explore other snippets available on that GitLab instance. If you click New snippet, you'll be faced with the snippet creation screen:

Most of the fields ...

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.