Use Git with Snippets

You can use Git to clone a snippet repository and manage its files. After you clone the snippet’s repository, you can view the file history, and update and commit files locally. However, you can only push updates to repositories for snippets that you own.

  1. Open the snippet.
  2. On the Snippet Details page, at the top, click Clone, and then click Copy the copy icon to copy the HTTP or the SSH URL of the snippet repository.
  3. Use Git commands to clone the repository, update files, and push the commits to the project.

    If the directory into which you want to clone the repository isn't empty, you'll need to create a new subdirectory and clone the repository into it. You can only perform a cloning operation into an empty directory.