跳到主要内容

Commit

提示

A commit is a way to record and manage changes to code, allowing you to track the evolution of your code and resolve issues. Each code change can be recorded through a commit, accompanied by a message explaining the changes. Commits are saved in version control systems, building a history of your code so you can track its evolution and resolve issues.

Creating a Commit


  1. Log in to GitCode: First, make sure you are logged into your GitCode account.
  2. Enter the Project: Go to the project page containing the files you wish to modify.
  3. Click on Code: Click the "Code" tab at the top right corner of the project page.
  4. Edit the File: Use a text editor or code editor to modify the file you want to change.
  5. Save Changes: After editing, click the "Commit changes" button at the top right corner, fill in the commit information (summary and detailed description), and then click the "Commit changes" button.
  6. Create a Commit: Alternatively, you can choose to create a new branch and submit changes via Pull Requests. Refer to this article.

commit1

commit2