Adding a file or directory to a repository from the SourceCraft interface

In the SourceCraft UI, you can create a new file or directory without cloning the repository, as well as upload a file from your local PC.

Creating a file or directory

  1. Open the SourceCraft home page.

  2. On the Home tab, navigate to Your craftspace Repositories.

  3. Select the repository with the code you need to edit.

  4. Under Code on the repository page, go to Overview.

  5. Select the branch for editing.

  6. Above the list of files in the branch, click New.

  7. Select File or Directory.

  8. In the window that opens, enter a file or directory name and click Create file or Create directory respectively.

  9. To save your changes:

    1. In the top-right corner, click Commit changes.

    2. In the window that opens, configure the procedure for changes:

      • In the Commit message field, give a comment that will describe the changes you make.
      • Under Commit branch, select the branch you want to change. Create a new branch as needed.
      • Under After commit action, select an action to take after saving changes: Save and create a new change proposal or Just save.
    3. Confirm your changes.

Uploading a file from your local PC

  1. Open the SourceCraft home page.

  2. On the Home tab, navigate to Your craftspace Repositories.

  3. Select the repository you want to upload your file into.

  4. Under  Code on the repository page, go to  Overview.

  5. Select the branch you want to upload the file to.

  6. Above the list of files, click New and select Upload file.

  7. In the window that opens, select a file on your local PC.

  8. Configure the settings for saving changes:

    • In the Commit message field, give a comment that will describe the changes you make.
    • Under Commit branch, select the branch you want to change. Create a new branch as needed.
    • Under After commit action, select an action to take after saving changes: Save and create a new change proposal or Just save.
  9. Confirm your changes.

Useful links