Commit
提示
A commit is a way to record and manage changes to the code, used to document and track modifications to the code. Each code change can be recorded through a commit, along with a message explaining the changes. Commits are saved in version control systems, building a history of the code, allowing you to track the evolution of the code and resolve issues.
Creating a Commit
- Log in to GitCode: First, ensure that you are logged into your GitCode account.
- Enter the Project: Go to the project page containing the files you want to modify.
- Click on Code: In the top left corner of the project page, click the "Code" tab.
- Edit the File: Use a text editor or code editor to edit the file you wish to change.
- Save Changes: After editing, click the "Commit Changes" button in the top right corner, fill in the commit information (summary and detailed description), and then click the "Commit Changes" button.
- Create a Commit: You can also choose to create a new branch and submit modifications via Pull Requests. Refer to this article.