git安装

GIT安装 (GIT Installation)

Now that we know what a Version Control System is, let's make sure you already have an installed version of Git on your computer so it's easy to follow along.

现在我们知道了什么是版本控制系统 ,让我们确保您的计算机上已经安装了Git版本,以便轻松进行后续操作。

MacOS中的GIT (GIT in MacOS)

If you have a Mac, Good News! It comes on your system by default. Go right ahead to the next chapter.

如果您使用的是Mac,那就好消息! 默认情况下,它在您的系统上。 继续下一章

Windows中的GIT (GIT in Windows)

Head over to this link. You will notice that the website recognizes your OS and prompts you to download the latest version.

转到此链接 。 您会注意到该网站可以识别您的操作系统,并提示您下载最新版本。

git安装_GIT安装



Go ahead and install from the package. When you open the installer, just click Next and install Git with the default settings since they are the recommended settings. You may change the installation directory if you need to.

继续并从软件包中安装。 打开安装程序时,只需单击下一步 ,然后使用默认设置安装Git,因为它们是推荐设置。 如果需要,可以更改安装目录

git安装_GIT安装



git安装_GIT安装

  • Start Menu after the installer is complete and look for the 开始”菜单 ,然后查找Git folder / icon. You may see two options, Git文件夹/图标 。 您可能会看到两个选项, Git GUI or Git GUIGit Bash. Some people prefer to use the GUI but we are going to focus on the Git Bash 。 有些人喜欢使用GUI,但在本课程中我们将重点放在command line in this course. But feel free to check the Git GUI whenever you like.命令行上。 但是,随时可以检查Git GUI。
  • $git --version on the command line.$ git --version进行尝试。

One difference in the way this will differ is that we will be using the nano editor to edit files, which is not available on the Windows OS.

这种方式的不同之处之一是,我们将使用nano编辑器来编辑文件,而Windows OS上不提供该文件。

Example: we will be typing $ nano filename to open a file but typing this on a Windows machine will result in a command not found error. Instead, you can type in $ notepad filename and work just fine!

示例:我们将输入$ nano filename打开文件,但是在Windows计算机上键入此文件将导致找不到命令错误。 相反,您可以输入$ notepad文件名并可以正常工作!

git安装_GIT安装

Linux中的GIT (GIT in Linux)

If you want to install the basic Git tools on Linux via a binary installer, you can generally do so through the basic package-management tool that comes with your distribution.

如果要通过二进制安装程序在Linux上安装基本的Git工具,通常可以通过发行版附带的基本软件包管理工具来完成。

  • Fedora for example, you can use yum: Fedora ,则可以使用yum: $ sudo yum install git-all.$ sudo yum install git-all
  • Debian-based distribution like Debian的发行版(Ubuntu, try apt-get: Ubuntu) ,请尝试apt-get: $ sudo apt-get install git-all$ sudo apt-get install git-all

Okay then, now that we have the latest version to work with, let's get started with Git.

好的,既然可以使用最新版本,那么让我们开始使用Git。

翻译自: https://www.studytonight.com/github/install-git

git安装

相关文章:

  • 2021-08-03
  • 2022-01-13
  • 2021-09-08
猜你喜欢
  • 2021-07-24
  • 2021-06-25
  • 2021-08-07
  • 2021-12-06
  • 2021-12-06
  • 2021-08-03
相关资源
相似解决方案