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
-
Open the SourceCraft home page.
-
On the
Home tab, navigate to Your craftspace → Repositories. -
Select the repository with the code you need to edit.
-
Under
Code on the repository page, go to Overview. -
Select the branch for editing.
-
Above the list of files in the branch, click
New. -
Select
File or Directory. -
In the window that opens, enter a file or directory name and click Create file or Create directory respectively.
-
To save your changes:
-
In the top-right corner, click Commit changes.
-
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 proposalorJust save.
-
Confirm your changes.
-
Uploading a file from your local PC
-
Open the SourceCraft home page.
-
On the
Home tab, navigate to Your craftspace → Repositories. -
Select the repository you want to upload your file into.
-
Under
Code on the repository page, go to Overview. -
Select the branch you want to upload the file to.
-
Above the list of files, click
New and select Upload file. -
In the window that opens, select a file on your local PC.
-
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 proposalorJust save.
-
Confirm your changes.