`
gaojingsong
  • 浏览: 1182074 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【git安装操作】

阅读更多

[root@hadoop0 ~]# git

-bash: git: command not found

[root@hadoop0 ~]# yum install git

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: mirrors.sina.cn

 * extras: mirrors.sina.cn

 * updates: mirror.bit.edu.cn

base                                                                                                                                                                                                                | 3.7 kB     00:00     

extras                                                                                                                                                                                                              | 3.3 kB     00:00     

updates                                                                                                                                                                                                             | 3.4 kB     00:00     

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package git.i686 0:1.7.1-4.el6_7.1 will be installed

--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-1.7.1-4.el6_7.1.i686

--> Processing Dependency: perl(Git) for package: git-1.7.1-4.el6_7.1.i686

--> Processing Dependency: perl(Error) for package: git-1.7.1-4.el6_7.1.i686

--> Running transaction check

---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed

---> Package perl-Git.noarch 0:1.7.1-4.el6_7.1 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

===========================================================

 Package                          Arch        Version               Repository          Size

====================================================

Installing:

 git                               i686       1.7.1-4.el6_7.1        base              4.5 M

Installing for dependencies:

 perl-Error                        noarch     1:0.17015-4.el6         base              29 k

 perl-Git                          noarch     1.7.1-4.el6_7.1         base              28 k

 

Transaction Summary

=================================================================

Install       3 Package(s)

 

Total download size: 4.6 M

Installed size: 15 M

Is this ok [y/N]: y

Downloading Packages:

http://mirrors.sina.cn/centos/6.8/os/i386/Packages/git-1.7.1-4.el6_7.1.i686.rpm: [Errno 12] 

Timeout on http://mirrors.sina.cn/centos/6.8/os/i386/Packages/git-1.7.1-4.el6_7.1.i686.rpm: (28, 

'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')

Trying other mirror.

(1/3): git-1.7.1-4.el6_7.1.i686.rpm                                                                                                                                                                                 | 4.5 MB     01:27     

(2/3): perl-Error-0.17015-4.el6.noarch.rpm                                                                                                                                                                          |  29 kB     00:00     

(3/3): perl-Git-1.7.1-4.el6_7.1.noarch.rpm                                                                                                                                                                          |  28 kB     00:01     

------------------------------------------------------------------------------

Total                                                                                28 kB/s | 4.6 MB     02:49     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : 1:perl-Error-0.17015-4.el6.noarch                                                                                                                                                                                       1/3 

  Installing : git-1.7.1-4.el6_7.1.i686                                                                                                                                                                                                2/3 

  Installing : perl-Git-1.7.1-4.el6_7.1.noarch                                                                                                                                                                                         3/3 

  Verifying  : perl-Git-1.7.1-4.el6_7.1.noarch                                                                                                                                                                                         1/3 

  Verifying  : 1:perl-Error-0.17015-4.el6.noarch                                                                                                                                                                                       2/3 

  Verifying  : git-1.7.1-4.el6_7.1.i686                                                                                                                                                                                                3/3 

 

Installed:

  git.i686 0:1.7.1-4.el6_7.1                                                                                                                                                                                                               

 

Dependency Installed:

  perl-Error.noarch 1:0.17015-4.el6                  perl-Git.noarch 0:1.7.1-4.el6_7.1                                                                                   

 

Complete!

[root@hadoop0 ~]# git

usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]

           [-p|--paginate|--no-pager] [--no-replace-objects]

           [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]

           [--help] COMMAND [ARGS]

 

The most commonly used git commands are:

   add        Add file contents to the index

   bisect     Find by binary search the change that introduced a bug

   branch     List, create, or delete branches

   checkout   Checkout a branch or paths to the working tree

   clone      Clone a repository into a new directory

   commit     Record changes to the repository

   diff       Show changes between commits, commit and working tree, etc

   fetch      Download objects and refs from another repository

   grep       Print lines matching a pattern

   init       Create an empty git repository or reinitialize an existing one

   log        Show commit logs

   merge      Join two or more development histories together

   mv         Move or rename a file, a directory, or a symlink

   pull       Fetch from and merge with another repository or a local branch

   push       Update remote refs along with associated objects

   rebase     Forward-port local commits to the updated upstream head

   reset      Reset current HEAD to the specified state

   rm         Remove files from the working tree and from the index

   show       Show various types of objects

   status     Show the working tree status

   tag        Create, list, delete or verify a tag object signed with GPG

 

See 'git help COMMAND' for more information on a specific command.

[root@hadoop0 ~]# 



 

 

  • 大小: 19.3 KB
0
2
分享到:
评论

相关推荐

    git安装配置手册

    Git 安装配置手册 Git 安装配置手册是指在 CentOS 环境下安装和配置 Git 服务器的详细步骤,这篇手册将指导您从零开始安装和配置 Git 服务器,并掌握 Git 的基本概念和使用方法。 一、Git 服务器安装 Git ...

    git安装文件.zip

    标题“git安装文件.zip”指的是包含Git安装程序的压缩文件,用于在Windows 64位系统上安装Git。描述中的“Git-2.19.0-64-bit.exe”是Git的特定版本,即2.19.0,专为64位Windows操作系统设计。"亲测可安装"意味着该...

    简单git安装步骤

    简单 Git 安装步骤 本文主要讲述了使用 Git 的基本操作步骤,从注册账户和创建仓库到安装客户端、配置 Git、提交和上传代码。 Git 是一个版本控制系统,能够帮助开发者更好地管理代码。 一、注册账户和创建仓库 ...

    Git安装使用教程

    ### Git安装使用教程 #### 一、Git简介与特点 Git是一款免费且开源的分布式版本控制系统,能够高效地处理从微小到大型的各种项目。它由Linus Torvalds于2005年创建,旨在作为BitKeeper的一种替代方案,以解决Linux...

    GIT安装和使用教程

    ### Git安装和使用教程知识点概览 #### 一、Git简介 - **分布式特性**:Git作为一种分布式的版本控制系统,其核心优势在于每个开发者的工作站上都拥有完整的项目历史记录,这种特性使得开发者可以在没有网络连接的...

    最新的git安装版本

    最新的Git安装版本通常是开发者和团队为了获取最新特性和性能优化而关注的重点。本文将深入探讨Git的基本概念、安装过程以及如何利用Git进行版本控制。 Git的核心理念在于记录文件和目录的变化,使得开发者可以在...

    git 安装程序包 git 安装程序包

    在本文中,我们将深入探讨Git的安装过程,以及如何使用它来管理你的项目。 1. **Git的获取与安装** - **官网下载**:首先,你需要访问Git的官方网站(https://git-scm.com/downloads)来获取适合你操作系统的Git...

    git安装文件及使用说明.rar

    本压缩包“git安装文件及使用说明.rar”提供了Git的安装程序和一个关于TortoiseGit的使用入门教程,帮助用户在Windows环境下更好地理解和使用Git。 1. Git-2.21.0-64-bit.exe:这是Git的64位版本安装程序。Git支持...

    GIT 压缩包 适用于压缩包式安装git

    本压缩包是为那些希望通过压缩包方式进行Git安装的用户提供的一种简便方法。 在详细讨论Git之前,我们先来理解一下什么是版本控制系统。版本控制系统是用于跟踪文件或项目更改的工具,使用户可以随时回滚到之前的...

    git相关安装文件

    1. **下载安装包**:从Git官网或者通过提供的压缩包文件,下载适用于你操作系统的Git安装程序。 2. **安装过程**:按照安装向导的指示进行,可以选择默认设置或自定义配置,比如设置Git Bash的终端模拟器、编辑器和...

    git安装及使用

    ### 一、Git安装 在Windows上,你可以通过以下步骤安装Git: 1. 访问Git官方网站(https://git-scm.com/download/win),下载最新版本的Git安装程序。 2. 运行安装程序,按照向导提示进行安装。记得在安装过程中...

    Git 安装及配置教程,镜像拉取,适合新手自学

    本教程主要针对新手,旨在指导如何安装配置 Git,以及如何进行基本的操作,如创建、推送、克隆和管理项目。 首先,安装 Git 可以从官方网站下载相应平台的安装包。安装完成后,配置个人的用户名和邮箱,这是 Git ...

    CentOS7安装Git

    2. **自定义安装路径**:默认情况下,`make install`会将Git安装到`/usr/local/bin`等目录下。如果希望更改安装路径,可以在`./configure`时添加相应的参数,例如: ```bash [root@localhost git-2.8.3]# ./...

    git安装软件

    在我们的案例中,我们有一个名为"git安装软件win64"的压缩包,这显然是为Windows 64位系统设计的Git安装包。为了开始安装过程,你需要先下载并解压这个压缩文件。 下载完成后,双击运行解压后的安装程序。安装向导...

    Git安装文件.zip

    Git的最新版本为2.32.0.2,提供了对64位操作系统的支持。本文将深入探讨Git的安装过程,以及如何利用Git进行版本控制和协作。 首先,安装Git。"Git-2.32.0.2-64-bit.exe" 是Git的Windows安装程序,适用于64位系统。...

    Git安装程序,版本2.15

    在本文中,我们将深入探讨Git安装程序及其版本2.15,同时也会提供一些关于如何在不同操作系统上安装Git的基本步骤。 标题中的"Git安装程序,版本2.15"指的是Git的特定发行版,即2.15.1.2,这是一个64位的Windows...

    GIT安装使用说明

    GIT 安装使用说明 Git 是一个免费、开源的版本控制系统,用于跟踪源代码的变化。Git Extension 客户端是一个图形化的 Git 客户端,提供了一个用户友好的界面来管理 Git 仓库。对比工具是用于比较和合并文件的工具...

Global site tag (gtag.js) - Google Analytics