Background
In this post, we will cover how to manage snippets in GitLab.
GitLab
Snippet
Outline
Here are the steps for creating a snippet in GitLab.
- Initiate
- From the top menu bar, access the Snippets option
- Snippets
- Your Snippets
- Explore Snippets
- New Snippet – Adding
- Title
- Description
- Files
- Individual Files
- Filename
- Code Snippet
- Individual Files
- Visibility level
- Private
- Public
Steps
Step – Initiate
To manage snippets, please use the menu.
To access the option, please click Menu/Snippets.
Step – Snippets
Two panels are available.
The availed panels are:-
- Your Snippets
- Explore Snippets
Step – New Snippet – Initiating
Depending on whether the account has existing snippets or not, the screen displayed is a bit different.
If there are existing snippets, the existing snippets are listed.
If there are no existing snippets, an image serves as a placeholder.
Step – New Snippet – Add Snippet
- Title
- Description
- Files
- File
- Filename
- Please make sure to include the file’s extension
- Filename
- File
- Visibility
- Private
- Public
Images
Initiate
Menu – Snippets
Snippets Review
Your Snippets, Explore Snippets
Empty Snippets
Existing Snippets
New Snippet
Title & Description
Visibility Label
Sample Snippets
- Daniel Adeniji
- Repeat Char
Link
- Repeat Char
Product Comparison
In an earlier post spoke a bit about some of the lapses in creating and managing snippets within GitHub Gist’s ( code snippets ) toolset.
BTW that post is here:-
GitHub – Gist – Feedback
Date Published:- 2022-April-11th
Link
Arguably, GitLab is a bit easier from a tooling ( User Interface and Comestic ) standpoint.
References
- GitLab
- Snippets
Link
- Snippets