Delete a Project and Clone Again

This training will walk you through how to delete an existing project and clone the project again. This process should be followed when you wish to clone a fresh baseline clone of a program project. Please note that you will lose any updated files you have created but not yet pushed.

Prerequisites

  • GitLab Registration Completed

  • IntelliJ IDEA Installed and linked to GitLab Account

  • Cloned Project in IntelliJ IDEA

Steps

  1. From the IntelliJ IDEA Project Screen project click on the main menu (The icon with 4 horizontal lines)

    JetBrains

  2. Select the File Menu & Select the Close Project option

    Jetbrains
  3. This will close the project and revert you to the main IntelliJ Idea screen

  4. On the main IntelliJ IDEA screen you will see a listing of all projects you have cloned.

  5. You can hover over the project to see the navigation path on your computer to the local stored files.

    JetBrains
  6. Right-click on the icon with the 3 dots to open the context menu and select show in explorer to open a File Explorer window at that location.

    JetBrains
  7. Navigate to the File Explorer window & delete the entire folder using the delete key or by clicking on the trash can icon.

    JetBrains
  8. Navigate back to IntelliJ IDEA and the project will now be greyed out. If you hover the mouse over the project it will show 'Unavailable'

    JetBrains
  9. Click on the X icon to remove it from your listing. This will generate a prompt to remove from recent projects. Click on Remove.

    JetBrains
  10. From the IntelliJ IDEA home screen select Get from VCS. First project.

    JetBrains

    If you already have existing projects you will have listing of those and click on the 'Get from VCS' button.

    JetBrains
  11. Enter the PAMMS source URL that corresponds to your program in the URL field (include https:// prefix). The Directory field specifies the location in which the PAMMS source repo will be downloaded to. Can be left as is or changed if you would like to download the repo somewhere else.

    JetBrains
  12. Here you may be Prompted to Install git. If so, click install git and restart IntelliJ and follow the above steps again to get to this point. Click Clone. IntelliJ will begin to fetch the repository from GitLab on to your computer.

    JetBrains
  13. A dialog box will pop up asking if the Project is trusted. Click Trust Project.

    JetBrains
  14. A new window will open with the project open. This is the view from which you will edit files in your repository.

    JetBrains