|
1 | 1 | ---
|
2 | | - |
3 | | -title: Gitlens Cloud Patches |
4 | | -description: Learn about Cloud Patches in Gitlens |
| 2 | +title: GitLens Cloud Patches |
| 3 | +description: Use GitLens Cloud Patches to securely share work-in-progress changes across GitKraken tools for early collaboration. |
5 | 4 | taxonomy:
|
6 | 5 | category: gitlens
|
7 | 6 |
|
8 | 7 | ---
|
9 | 8 |
|
| 9 | +<kbd>Last updated: August 2025</kbd> |
| 10 | + |
| 11 | +## What Are Cloud Patches? |
| 12 | + |
| 13 | +A **Cloud Patch** is a Git patch securely stored by GitKraken so it can be easily shared across **GitLens**, **GitKraken Desktop**, and the **GitKraken CLI**. |
| 14 | +The patch is transferred directly from your machine into secure storage. |
10 | 15 |
|
11 | | -### What are Cloud Patches and why would you want to use them |
| 16 | +Cloud Patches let you collaborate with your team **before creating a pull request**. You can share work in progress, gather feedback early, and minimize delays in pull request reviews. |
12 | 17 |
|
13 | | -A Cloud Patch is a Git patch that GitKraken securely stores for you so it can be easily shared with others across GitLens, GitKraken Desktop, and the GitKraken CLI. The patch is directly transferred from your machine into secure storage. |
| 18 | +--- |
14 | 19 |
|
15 | | -Cloud Patches allow the ability to engage early with your team before a pull request. They can be created as soon as you have a work in progress. This can help with collaborating on changes prior to a pull request and minimize the delay of pull request reviews. |
| 20 | +## Set Up Cloud Patches |
16 | 21 |
|
17 | | -### How to setup Cloud Patches |
| 22 | +To enable or disable Cloud Patches per client: |
18 | 23 |
|
19 | | -To enable Cloud Patches per client, open the user Settings (`command/ctrl + shift + P` > `Preferences: Open User Settings (JSON)`) and set `gitlens.cloudPatches.enabled` to `true` - this is on by default. To disable Cloud Patches per client, set this setting to `false` . |
| 24 | +1. Open the Command Palette: |
| 25 | + - macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> |
| 26 | + - Windows/Linux: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> |
| 27 | +2. Search for **Preferences: Open User Settings (JSON)**. |
| 28 | +3. Set the value of `gitlens.cloudPatches.enabled`: |
| 29 | + - `true` = enabled (default) |
| 30 | + - `false` = disabled |
20 | 31 |
|
21 | | -### How to work with Cloud Patches |
| 32 | +--- |
22 | 33 |
|
23 | | -Cloud Patches can be managed from the Cloud Patches view in the GitLens side bar. |
| 34 | +## Create and Share Cloud Patches |
24 | 35 |
|
25 | | -<imgsrc="/wp-content/uploads/gl-cloud-patch-create.webp"class="help-center-img img-bordered"> |
| 36 | +You can manage Cloud Patches from the **Cloud Patches view** in the GitLens sidebar. |
26 | 37 |
|
27 | | -A Cloud Patch can be created from Working Changes, Commits, Stashes or Comparisons by using the "Share as Cloud Patch" option from the command palette or from the Share submenu in applicable gitlens views. |
| 38 | +<figure> |
| 39 | + <img src="/wp-content/uploads/gl-cloud-patch-create.webp" class="help-center-img img-bordered" alt="Creating a Cloud Patch from the GitLens sidebar" /> |
| 40 | + <figcaption style="text-align: center; color: #888">Creating a Cloud Patch</figcaption> |
| 41 | +</figure> |
28 | 42 |
|
29 | | -<img src="/wp-content/uploads/gl-create-cloud-patch-example.png" class="help-center-img img-bordered"> |
| 43 | +A Cloud Patch can be created from **Working Changes, Commits, Stashes, or Comparisons** by selecting **Share as Cloud Patch** from either: |
| 44 | +- The Command Palette |
| 45 | +- The **Share** submenu in applicable GitLens views |
30 | 46 |
|
31 | | -When creating a Cloud Patch, you have the following sharing options: |
| 47 | +<figure> |
| 48 | + <img src="/wp-content/uploads/gl-create-cloud-patch-example.png" class="help-center-img img-bordered" alt="Creating a Cloud Patch from working changes in GitLens" /> |
| 49 | + <figcaption style="text-align: center; color: #888">Example of creating a Cloud Patch</figcaption> |
| 50 | +</figure> |
32 | 51 |
|
33 | | -- `Anyone with the link`: Anyone that you share the public link with will be able to work with the Cloud Patch. |
| 52 | +### Sharing Options |
| 53 | +When creating a Cloud Patch, choose one of the following: |
34 | 54 |
|
35 | | -- `Anyone in my org`: Anyone in the GitKraken Organization will be able to work with the Cloud Patch. They will be required to authenticate with a GitKraken account to access it. |
| 55 | +- **Anyone with the link**: Public access for anyone with the link. |
| 56 | +- **Anyone in my org**: Accessible to members of your GitKraken Organization (authentication required). |
| 57 | +- **Only collaborators**: Restricted to selected GitKraken Organization members (authentication required). Use **Invite** to select members. |
36 | 58 |
|
37 | | --`Only collaborators`: Only users in the GitKraken Organization who have been selected when sharing will be able to work with the Cloud Patch. They will be required to authenticate with a GitKraken account to access it. Select `Invite` to select desired members. |
| 59 | +Cloud Patches shared with you appear under **Shared with Me** in the Cloud Patches section. |
38 | 60 |
|
39 | | -Cloud Patches shared with you can be viewed in the Cloud Patches section under `Shared with Me`. |
| 61 | +<figure> |
| 62 | + <img src="/wp-content/uploads/gl-cloud-patch-sharing-options-2.png" class="help-center-img img-bordered" alt="Sharing options for a Cloud Patch in GitLens" /> |
| 63 | + <figcaption style="text-align: center; color: #888">Cloud Patch sharing options</figcaption> |
| 64 | +</figure> |
40 | 65 |
|
41 | | -<div class='callout callout--basic'> |
42 | | - <p>Note: If you have multiple organizations, you can easily switch between them from the GitKraken Account view.</p> |
43 | | -</div> |
| 66 | +--- |
| 67 | + |
| 68 | +## Apply and Manage Cloud Patches |
| 69 | + |
| 70 | +- Open a Cloud Patch from a shared URL to view it in GitLens. |
| 71 | +- Apply it to your **working tree** or to a **new/existing branch** by following the prompts in GitLens. |
44 | 72 |
|
45 | | -<img src="/wp-content/uploads/gl-cloud-patch-sharing-options-2.png" class="help-center-img img-bordered"> |
| 73 | +<figure> |
| 74 | + <img src="/wp-content/uploads/gl-apply-patch-example.gif" class="help-center-img img-bordered" alt="Applying a Cloud Patch in GitLens" /> |
| 75 | + <figcaption style="text-align: center; color: #888">Applying a Cloud Patch</figcaption> |
| 76 | +</figure> |
46 | 77 |
|
47 | | -Cloud Patches can be viewed from URLs shared to you and they can be applied to your working tree or to a new or existing branch. Simply select or open the link and then follow the prompts within GitLens to apply the Cloud Patch. |
| 78 | +### Delete a Cloud Patch |
| 79 | +1. Right-click the patch in the Cloud Patches view. |
| 80 | +2. Select **Delete Cloud Patch...** |
48 | 81 |
|
49 | | -<img src="/wp-content/uploads/gl-apply-patch-example.gif" class="help-center-img img-bordered"> |
| 82 | +<figure> |
| 83 | + <img src="/wp-content/uploads/gl-delete-cloud-patch.png" class="help-center-img img-bordered" alt="Deleting a Cloud Patch in GitLens" /> |
| 84 | + <figcaption style="text-align: center; color: #888">Deleting a Cloud Patch</figcaption> |
| 85 | +</figure> |
50 | 86 |
|
51 | | -To delete a cloud patch, right-click it and select `Delete Cloud Patch...`. |
| 87 | +--- |
| 88 | + |
| 89 | +## Self-Host Cloud Patch Data |
52 | 90 |
|
53 | | -<imgsrc="/wp-content/uploads/gl-delete-cloud-patch.png"class="help-center-img img-bordered"> |
| 91 | +If you do not want Cloud Patch data stored on GitKraken servers, you can host Cloud Patches on your own **AWS S3 storage instance**. |
54 | 92 |
|
55 | | -### Self-Hosting Cloud Patch data |
| 93 | +For configuration instructions, see [Self-Hosted Documentation](/gk-dev/gk-dev-home/#self-hosted). |
56 | 94 |
|
57 | | -If you do not want your Cloud Patch data stored on GitKraken Servers, we offer the ability for you to host Cloud Patches on your own AWS S3 storage instance. For more information on configuring this, see our documentation [here](/gk-dev/gk-dev-home/#self-hosted). |
| 95 | +<div class='callout callout--basic'> |
| 96 | + <p>Note: If you belong to multiple organizations, you can switch between them from the GitKraken Account view.</p> |
| 97 | +</div> |
0 commit comments