Skip to content
代码片段 群组 项目
未验证 提交 afc72d34 编辑于 作者: Brendan Lynch's avatar Brendan Lynch 提交者: GitLab
浏览文件

Update Getting started parent page

上级 1e5f7374
No related branches found
No related tags found
无相关合并请求
...@@ -21,7 +21,7 @@ Learning Git is part of a larger workflow: ...@@ -21,7 +21,7 @@ Learning Git is part of a larger workflow:
A Git repository is essentially a directory that contains all the files, A Git repository is essentially a directory that contains all the files,
folders, and version history of a project. folders, and version history of a project.
It serves as a central hub where you can store, manage, and share your code or content. It serves as a central hub to store, manage, and share your code.
When you initialize a Git repository or clone an existing one, Git When you initialize a Git repository or clone an existing one, Git
creates a hidden directory called `.git` in the project directory. creates a hidden directory called `.git` in the project directory.
...@@ -83,7 +83,15 @@ For more information, see: ...@@ -83,7 +83,15 @@ For more information, see:
- [Tutorial: Make your first Git commit](../../tutorials/make_first_git_commit/index.md) - [Tutorial: Make your first Git commit](../../tutorials/make_first_git_commit/index.md)
- [Forks](../../user/project/repository/forking_workflow.md) - [Forks](../../user/project/repository/forking_workflow.md)
## Step 4: Familiarize yourself with Git commands ## Step 4: Install Git
Before you start using Git commands and contributing to GitLab projects, you must download
and install the Git client on your computer. The installation process varies depending on
your operating system.
For information on how to install Git, see [Install Git](how_to_install_git/index.md).
## Step 5: Familiarize yourself with Git commands
To work with Git from the command line, you need to use various Git commands. To work with Git from the command line, you need to use various Git commands.
Some of the most commonly used commands include: Some of the most commonly used commands include:
...@@ -96,13 +104,30 @@ Some of the most commonly used commands include: ...@@ -96,13 +104,30 @@ Some of the most commonly used commands include:
- `git push`: Push local commits to the remote repository - `git push`: Push local commits to the remote repository
- `git pull`: Fetch changes from the remote repository and merge them into your local branch - `git pull`: Fetch changes from the remote repository and merge them into your local branch
For more information, see: For more comprehensive information and detailed explanations,
see [Command Git commands](commands.md) guide.
<!--- Use this section when the [Generate an SSH key pair](../user/ssh.md) page is added to the navigation
- [Command line Git](commands.md) ### Use SSH with Git
## Step 5: Practice using Git When you work with remote repositories, you should use SSH for secure communication.
GitLab uses the SSH protocol to securely communicate with Git.
When you use SSH keys to authenticate to the GitLab remote server,
you don't need to supply your username and password each time.
To learn how to generate and add SSH keys to your GitLab account,
see [Generate an SSH key pair](../user/ssh.md).
-->
## Step 6: Practice using Git
The best way to learn Git is by using it in practice. Create a test project, The best way to learn Git is by using it in practice. Create a test project,
experiment with different commands, and try out various workflows. experiment with different commands, and try out various workflows.
GitLab provides a web-based interface for many Git operations, GitLab provides a web-based interface for many Git operations,
but it's also useful to understand how to use Git from the command line. but it is also used to understand how to use Git from the command line.
For a hands-on approach to learning Git commands, see the [Tutorial: Make your first Git commit](../../tutorials/make_first_git_commit/index.md).
For other helpful resources, see [Tutorials: Learn Git](../../tutorials/learn_git.md).
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册