Working on code as a team
Version control
版本控制
Version control records every change to the code: who changed what, and when, so you can go back to any earlier version.
Code lives in a repository; each team member works on a branch and the changes are then merged.
Git saves the project's history as commits, each with a message explaining the change, so you know when and why something changed and can go back to any earlier version.
Branches let you work on a new feature without touching the main version; when it is done, it is merged into the main branch after review, often through a pull request on GitHub.
Basic commands used every day: git add to stage changes, git commit to save them with a message, git push to upload them to the remote repository and git pull to fetch teammates' changes.
Ask the AI assistant
Ask anything about this lesson and get a simple answer with the terms in Chinese, Arabic and English.
The AI assistant runs on Google's Gemini model and can make mistakes. Do not write personal information. Available to signed-in learners, up to 30 requests a day.
The content is simplified and covers the basics only.