💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Git > 原文:[https://docs.gitlab.com/ee/topics/git/](https://docs.gitlab.com/ee/topics/git/) * [Getting started](#getting-started) * [Concepts](#concepts) * [Git tips](#git-tips) * [Troubleshooting Git](#troubleshooting-git) * [Branching strategies](#branching-strategies) * [Advanced use](#advanced-use) * [API](#api) * [Git Large File Storage (LFS)](#git-large-file-storage-lfs) # Git[](#git "Permalink") Git 是一个[免费的开源](https://git-scm.com/about/free-and-open-source)分布式版本控制系统,旨在快速高效地处理从小型项目到大型项目的所有内容. [GitLab](https://about.gitlab.com)是用于软件开发的基于 Git 的完全集成平台. 除了 Git 的功能外,GitLab 还具有许多强大的[功能](https://about.gitlab.com/features/)来增强您的[工作流程](https://about.gitlab.com/blog/2016/10/25/gitlab-workflow-an-overview/) . 我们已经收集了一些资源,可帮助您通过 GitLab 从 Git 中获得最大收益. 还可以在[Git 网站](https://git-scm.com)上获得更多信息. ## Getting started[](#getting-started "Permalink") 以下资源将帮助您开始使用 Git: * [Git-ing 从 Git](https://www.youtube.com/watch?v=Ce5nz5n41z4)的视频介绍开始. * [Git Basics](https://git-scm.com/book/en/v2/Getting-Started-Git-Basics) * [Git on the Server - GitLab](https://git-scm.com/book/en/v2/Git-on-the-Server-GitLab) * [How to install Git](how_to_install_git/index.html) * [Git terminology](../../gitlab-basics/start-using-git.html#git-terminology) * [Start using Git on the command line](../../gitlab-basics/start-using-git.html) * [Edit files through the command line](../../gitlab-basics/command-line-commands.html) * [GitLab Git Cheat Sheet (download)](https://about.gitlab.com/images/press/git-cheat-sheet.pdf) * Commits: * [Revert a commit](../../user/project/merge_requests/revert_changes.html#reverting-a-commit) * [Cherry-picking a commit](../../user/project/merge_requests/cherry_pick_changes.html#cherry-picking-a-commit) * [Squashing commits](../gitlab_flow.html#squashing-commits-with-rebase) * [Squash-and-merge](../../user/project/merge_requests/squash_and_merge.html) * [Signing commits](../../user/project/repository/gpg_signed_commits/index.html) * [Git stash](../../university/training/topics/stash.html) * [Git file blame](../../user/project/repository/git_blame.html) * [Git file history](../../user/project/repository/git_history.html) * [Git tags](../../university/training/user_training.html#tags) ### Concepts[](#concepts "Permalink") 以下是有关版本控制概念的资源: * [Git concepts](../../university/training/user_training.html#git-concepts) * [Why Git is Worth the Learning Curve](https://about.gitlab.com/blog/2017/05/17/learning-curve-is-the-biggest-challenge-developers-face-with-git/) * [The future of SaaS hosted Git repository pricing](https://about.gitlab.com/blog/2016/05/11/git-repository-pricing/) * [Git website on version control](https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control) * [GitLab University presentation about Version Control](https://docs.google.com/presentation/d/16sX7hUrCZyOFbpvnrAFrg6tVO5_yT98IgdAqOmXwBho/edit?usp=sharing) ## Git tips[](#git-tips "Permalink") 以下资源可以帮助您提高使用 Git 的效率: * GitLab 支持团队收集的[有用的 Git 命令](useful_git_commands.html) . * [Git Tips & Tricks](https://about.gitlab.com/blog/2016/12/08/git-tips-and-tricks/) * [Eight Tips to help you work better with Git](https://about.gitlab.com/blog/2015/02/19/8-tips-to-help-you-work-better-with-git/) ## Troubleshooting Git[](#troubleshooting-git "Permalink") 如果您在使用 Git 时遇到问题,以下方法可能会有所帮助: * [Numerous *undo* possibilities in Git](numerous_undo_possibilities_in_git/index.html) * 了解一些[Git 故障排除](troubleshooting_git.html)技术 ## Branching strategies[](#branching-strategies "Permalink") * [Feature branch workflow](../../gitlab-basics/feature_branch_workflow.html) * [Develop on a feature branch](feature_branch_development.html) * [GitLab Flow](../gitlab_flow.html) * [Git Branching - Branches in a Nutshell](https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell) * [Git Branching - Branching Workflows](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows) ## Advanced use[](#advanced-use "Permalink") 以下是针对那些想充分利用 Git 的人的高级主题: * [Server Hooks](../../administration/server_hooks.html) * [Git Attributes](../../user/project/git_attributes.html) * Git 子模块: [将 Git 子模块与 GitLab CI 一起使用](../../ci/git_submodules.html#using-git-submodules-with-gitlab-ci) * [Partial Clone](partial_clone.html) ## API[](#api "Permalink") [Gitignore 模板](../../api/templates/gitignores.html) API 允许来自 GitLab 的与 Git 相关的查询. ## Git Large File Storage (LFS)[](#git-large-file-storage-lfs "Permalink") 以下与 Git 大文件存储有关: * [Getting Started with Git LFS](https://about.gitlab.com/blog/2017/01/30/getting-started-with-git-lfs-tutorial/) * [Migrate an existing Git repository with Git LFS](lfs/migrate_to_git_lfs.html) * [Removing objects from LFS](lfs/index.html#removing-objects-from-lfs) * [GitLab Git LFS user documentation](lfs/index.html) * [GitLab Git LFS admin documentation](../../administration/lfs/index.html) * [Git Annex to Git LFS migration guide](lfs/migrate_from_git_annex_to_git_lfs.html) * [Towards a production quality open source Git LFS server](https://about.gitlab.com/blog/2015/08/13/towards-a-production-quality-open-source-git-lfs-server/)