index.md 4.3 KB
Newer Older
E
Evan Read 已提交
1 2 3 4 5
---
type: index
---

# Git
M
Marcia Ramos 已提交
6

7 8
Git is a [free and open source](https://git-scm.com/about/free-and-open-source)
distributed version control system designed to handle everything from small to
E
Evan Read 已提交
9
large projects with speed and efficiency.
10 11

[GitLab](https://about.gitlab.com) is a Git-based fully integrated platform for
M
Marcia Ramos 已提交
12
software development. Besides Git's functionalities, GitLab has a lot of
13 14 15 16 17
powerful [features](https://about.gitlab.com/features/) to enhance your
[workflow](https://about.gitlab.com/2016/10/25/gitlab-workflow-an-overview/).

We've gathered some resources to help you to get the best from Git with GitLab.

E
Evan Read 已提交
18 19
More information is also available on the [Git website](https://git-scm.com).

M
Marcia Ramos 已提交
20 21
## Getting started

E
Evan Read 已提交
22 23
The following resources will help you get started with Git:

E
Evan Read 已提交
24 25
- [Git-ing started with Git](https://www.youtube.com/watch?v=Ce5nz5n41z4),
  a video introduction to Git.
E
Evan Read 已提交
26 27
- [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)
28
- [How to install Git](how_to_install_git/index.md)
29 30
- [Start using Git on the command line](../../gitlab-basics/start-using-git.md)
- [Command Line basic commands](../../gitlab-basics/command-line-commands.md)
31
- [GitLab Git Cheat Sheet (download)](https://about.gitlab.com/images/press/git-cheat-sheet.pdf)
E
Evan Read 已提交
32 33
- Commits:
  - [Revert a commit](../../user/project/merge_requests/revert_changes.md#reverting-a-commit)
M
Marcia Ramos 已提交
34 35
  - [Cherry-picking a commit](../../user/project/merge_requests/cherry_pick_changes.md#cherry-picking-a-commit)
  - [Squashing commits](../../workflow/gitlab_flow.md#squashing-commits-with-rebase)
36

E
Evan Read 已提交
37
### Concepts
38

E
Evan Read 已提交
39
The following are resources about version control concepts:
40

E
Evan Read 已提交
41 42 43 44 45
- [Git concepts](../../university/training/user_training.md#git-concepts)
- [Why Git is Worth the Learning Curve](https://about.gitlab.com/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/2016/05/11/git-repository-pricing/)
- [Git website topic about 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)
46

E
Evan Read 已提交
47
## Git tips
48

E
Evan Read 已提交
49
The following resources may help you become more efficient at using Git:
50

M
Mike Lewis 已提交
51
- [Useful Git commands](useful_git_commands.md) collected by the GitLab support team.
52 53 54 55 56
- [Git Tips & Tricks](https://about.gitlab.com/2016/12/08/git-tips-and-tricks/)
- [Eight Tips to help you work better with Git](https://about.gitlab.com/2015/02/19/8-tips-to-help-you-work-better-with-git/)

## Troubleshooting Git

E
Evan Read 已提交
57 58
If you have problems with Git, the following may help:

59
- [Numerous _undo_ possibilities in Git](numerous_undo_possibilities_in_git/index.md)
E
Evan Read 已提交
60
- Learn a few [Git troubleshooting](troubleshooting_git.md) techniques
M
Marcia Ramos 已提交
61

M
Marcia Ramos 已提交
62
## Branching strategies
M
Marcia Ramos 已提交
63

64 65
- [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)
E
Evan Read 已提交
66
- [GitLab Flow](https://about.gitlab.com/2014/09/29/gitlab-flow/)
M
Marcia Ramos 已提交
67 68 69

## Advanced use

E
Evan Read 已提交
70 71
The following are advanced topics for those who want to get the most out of Git:

72 73 74
- [Custom Git Hooks](../../administration/custom_hooks.md)
- [Git Attributes](../../user/project/git_attributes.md)
- Git Submodules: [Using Git submodules with GitLab CI](../../ci/git_submodules.md#using-git-submodules-with-gitlab-ci)
M
Marcia Ramos 已提交
75 76 77

## API

E
Evan Read 已提交
78 79
[Gitignore templates](../../api/templates/gitignores.md) API allow for
Git-related queries from GitLab.
M
Marcia Ramos 已提交
80 81 82

## Git LFS

E
Evan Read 已提交
83 84
The following relate to Git Large File Storage:

85
- [Getting Started with Git LFS](https://about.gitlab.com/2017/01/30/getting-started-with-git-lfs-tutorial/)
86 87 88
- [Migrate an existing Git repo with Git LFS](migrate_to_git_lfs/index.md)
- [GitLab Git LFS user documentation](../../workflow/lfs/manage_large_binaries_with_git_lfs.md)
- [GitLab Git LFS admin documentation](../../workflow/lfs/lfs_administration.md)
89
- [Git-Annex to Git-LFS migration guide](../../workflow/lfs/migrate_from_git_annex_to_git_lfs.md)
E
Evan Read 已提交
90
- [Towards a production quality open source Git LFS server](https://about.gitlab.com/2015/08/13/towards-a-production-quality-open-source-git-lfs-server/)