Syncing project assets

If you associated your project with a Git repository, for example to work with notebooks or Python scripts in JupyterLab, to collaborate on R Shiny apps in RStudio, or to export assets to share across projects, you can sync between the repository and your project. You must sync your code assets created in IDEs with your project to run those assets as jobs in a project or deployment space (Shiny apps). You can:

To sync changes in your project and the repository:

  1. In your project, click  the Sync icon from the project toolbar.
  2. Select Pull only to pull the changes made to files in the Git repository into your project. The pull operation might create, update, or delete assets in your project based on the changes that were pushed to the repository. Only changes to notebook files, Python scripts or R Shiny apps are pulled, changes made to other file types are not pulled. Notebooks, scripts, or RShiny apps that were pushed to a GIT repository with a size of zero bytes are considered invalid and will not be pulled into the project. Also, hidden notebook files, Python scripts or R Shiny apps are not pulled.
  3. Select Pull and push to push the new state of the project assets to the Git repository. You are asked to select which project assets to push to the repository. Only files of the supported file types are listed.

    Important: You must perform both synchronization steps to fully synchronize the project with the Git repository. The first step pulls the recent changes from the Git repository to the project. The second step pushes the accumulated changes from the project to the Git repository.

Parent topic: Deprecated Git integration