Create a commit

Prev Next

Available in Classic and VPC

After selecting a repository, write code and save it as a file or upload an existing code file, and create a commit by editing or deleting existing files.

Note

To create a commit, log in to the console with a SourceCommit customer account or a sub account that has "write" (WRITE) or higher permissions.
For more information about how to grant permissions, see the Sub Account user guide.

Create file

To create a file:

  1. From the NAVER Cloud Platform console, navigate to i_menu > Services > Developer Tools > SourceCommit.
  2. Select a repository on the SourceCommit interface and click [Go to code].
    • You can also click the repository name on the repository list.
  3. Click [Create file] on the [Code] tab in the repository's detailed features page.
  4. Enter the code in the editor in the Create file component.
    • The maximum file size allowed is 400 KB.
      sourcecommit-use_commit2_ko
  5. In the Commit new file component, review the following items and enter or select values as needed.
    • File path/branch: Shows the path where the file will be created and the currently selected branch.
    • File name: Enter file name.
    • Creator name: Review or edit the creator name.
    • Email address: Review or edit the email address.
    • Commit message: Enter a message that describes the commit.
  6. Click [Commit].
    • A new commit is created when the file is created.
Note

Your log-in account is automatically entered into Creator name and Email address.

  • Creator name becomes user.name of the new commit.
  • Email address becomes user.email of the new commit.

Upload file

To upload a file, follow these steps:

  1. From the NAVER Cloud Platform console, navigate to i_menu > Services > Developer Tools > SourceCommit.
  2. Select a repository on the SourceCommit interface and click [Go to code].
    • You can also click the repository name on the repository list.
  3. Click [Upload file] on the [Code] tab in the repository's detailed features page.
  4. In the file upload component, drag and drop a file into the Drag and drop a file or click here component, or click Drag and drop a file or click here and select a file.
    • Each uploaded file can be up to 10 MB in size.
    • You can upload up to 3 files at once.
  5. In the Commit new file component, review the following items and enter or select values as needed.
    • File path/branch: Shows the path where the file will be created and the currently selected branch.
    • Creator name: Review or edit the creator name.
    • Email address: Review or edit the email address.
    • Commit message: Enter a message that describes the commit.
  6. Click [Commit].
    • A new commit is created when the file is uploaded.
Note

Your log-in account is automatically entered into Creator name and Email address.

  • Creator name becomes user.name of the new commit.
  • Email address becomes user.email of the new commit.

Edit file

To edit a file, follow these steps:

  1. From the NAVER Cloud Platform console, navigate to i_menu > Services > Developer Tools > SourceCommit.
  2. Select a repository on the SourceCommit interface and click [Go to code].
    • You can also click the repository name on the repository list.
  3. In the repository's detailed features page, click the file to edit on the [Code] tab, and click [Edit].
  4. Edit the code in the editor in the Edit file component.
    • The maximum file size allowed is 400 KB.
      sourcecommit-use_commit6_ko
  5. In the Commit edited file component, review the following items and enter or select values as needed.
    • File path/branch: Shows the path where the file will be created and the currently selected branch.
    • Creator name: Review or edit the creator name.
    • Email address: Review or edit the email address.
    • Commit message: Enter a message that describes the commit.
  6. Click [Commit].
    • A new commit is created when the file is edited.
Note

Your log-in account is automatically entered into Creator name and Email address.

  • Creator name becomes user.name of the new commit.
  • Email address becomes user.email of the new commit.

Delete file

To delete a file:

  1. From the NAVER Cloud Platform console, navigate to i_menu > Services > Developer Tools > SourceCommit.
  2. Select a repository on the SourceCommit interface and click [Go to code].
    • You can also click the repository name on the repository list.
  3. In the repository's detailed features page, click the file to edit on the [Code] tab, and click [Delete].
  4. Review the file contents in the editor in the Delete file component.
    • If a binary file is selected, the file contents are not displayed.
      sourcecommit-use_commit8_ko
  5. In the Commit edited file component, review the following items and enter or select values as needed.
    • File path/branch: Shows the path where the file will be created and the currently selected branch.
    • Creator name: Review or edit the creator name.
    • Email address: Review or edit the email address.
    • Commit message: Enter a message that describes the commit.
  6. Click [Commit].
    • A new commit is created when the file is deleted.
Note
  • Your log-in account is automatically entered into Creator name and Email address.
    • Creator name becomes user.name of the new commit.
    • Email address becomes user.email of the new commit.