How to share a screenshot in GitLab
Take a screenshot with your system shortcut, then click into a GitLab comment or description box and paste it with Ctrl+V (Cmd+V on Mac). GitLab uploads the image and inserts it for you.
GitLab does not have its own screenshot button, so you take the picture with your device and then add it to an issue, merge request or comment. This works the same way in most text boxes on the site.
Take the screenshot on desktop
Use the shortcut built into your system:
- Windows: Win+Shift+S to select an area, then it goes to the clipboard.
- Mac: Cmd+Shift+4 for an area, or Cmd+Shift+5 for more options. Add Ctrl to Cmd+Shift+4 to copy to the clipboard instead of saving a file.
- Linux (GNOME): press Print Screen. Other desktops have their own tool, such as Spectacle on KDE.
Add it to a GitLab issue or merge request
- Open the issue, merge request or comment box where you want the image.
- Click into the text field.
- Press Ctrl+V (Cmd+V on Mac) to paste the image from the clipboard.
- Wait for the image link to appear in the text, then save or comment.
If you saved the screenshot as a file, you can usually drag it into the box or use the attach file option instead.
Take and share a screenshot on your phone
On most phones you press the power and volume down buttons together (iPhones use the side button and volume up). Then open GitLab in your mobile browser, tap the comment box and attach the image from your photos. The exact steps depend on your browser and phone.
Be careful what the screenshot shows
Screenshots of a work project can contain tokens, passwords, customer names or private repository details. Before you share, crop to the relevant part and hide anything sensitive. Remember that images added to a project can be seen by people who can view that issue, so check who has access.
Some apps block screenshots, such as streaming services with copy protection and certain banking or secure messaging apps. That is intentional, and you should respect it. GitLab itself does not block screenshots.
Share a link with ShotBox instead
Sometimes you want a link rather than an uploaded file, for example in chat or an email. With ShotBox you paste the screenshot into the page, use the editor to crop, add an arrow or pixelate private details, and get a long random private link that is copied automatically. You can set the link to expire after 1 hour, 1 day, 7 days or 30 days, or delete it any time. Camera and GPS data are removed from the image. You can also copy Markdown or HTML embed code and paste it into GitLab.
ShotBox is a web app, so use your system shortcut first, then paste the image into it. It does not do scrolling or full-page capture.
Frequently asked questions
How do I paste a screenshot into a GitLab issue?
Take the screenshot with your system shortcut so it is on the clipboard, click into the issue or comment box and press Ctrl+V (Cmd+V on Mac). GitLab uploads it and adds the image to your text.
Can I take a screenshot on my phone and add it to GitLab?
Yes. Use your phone's normal screenshot buttons, then open GitLab in your mobile browser and attach the image from your photos when you write a comment.
How can I hide sensitive information in a screenshot?
Use an editor with a pixelate or blur tool before sharing, and also crop away anything not needed. ShotBox has a pixelate blur in its editor.
Can I share a GitLab screenshot as a link that expires?
Yes, with ShotBox you can upload the image and choose a link that expires after 1 hour, 1 day, 7 days or 30 days. You can also delete it at any time.
Why can't I take a screenshot in some apps?
Some apps, such as DRM streaming services and certain banking or secure messengers, block screenshots on purpose. This is a protection set by the app, and you should not try to work around it.