Skip to content
代码片段 群组 项目
用户头像
Brendan Lynch 编辑于
Co-authored-by: default avatarEmily Sahlani <esahlani@gitlab.com>
e683ea78
历史
用户头像 e683ea78
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
stage: Create
group: Source Code
description: Common Git commands and workflows.
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments"

Use Git

Git is a free and open source distributed version control system. It handles projects of all sizes quickly and efficiently, while providing support for rolling back changes when needed.

GitLab is built on top of (and with) Git, and provides you a Git-based, fully-integrated platform for software development. GitLab adds many powerful features on top of Git to enhance your workflow.

Getting started
Overview of how features fit together.
Install Git
Download, configuration, system requirements.
Tutorial: Create your first commit
Initial commit, Git basics, repository setup.
Clone a repository to your local machine
Local repository, clone, remote repository, SSH.
Create a branch for your changes
Branching, branch switch, checkout.
Add files to your branch
Git add, staging changes, file management, commits.
Stash changes for later
Temporary storage, work in progress, context switching.
Stage, commit, and push changes
Staging area, commits, push changes to remote.
Undo changes
Reverting commits, removing changes, Git reset, unstage.
Merge your branch into the main branch
Create merge request, change review, merge.
Rebase to address merge conflicts
Conflict resolution, rebase, branch management.
Common Git commands
Git cheatsheet, basic operations, command line.
Tutorial: Update Git remote URLs
Change the push/pull URL on a working copy.
Troubleshooting
Error resolution, common issues, debugging, Git problems.