Linux系统Git环境配置

OS版本:CentOS-7-x86_64-DVD-1503-01.iso

用户:root

  • 安装git

  • [root@localhost listen]# yum install git
    Loaded plugins: fastestmirror, langpacks
    base                                                                                                                                                   | 3.6 kB  00:00:00     
    extras                                                                                                                                                 | 3.4 kB  00:00:00     
    updates                                                                                                                                                | 3.4 kB  00:00:00     
    Loading mirror speeds from cached hostfile
     * base: mirrors.163.com
     * extras: mirrors.163.com
     * updates: mirrors.skyshe.cn
    Package git-1.8.3.1-6.el7_2.1.x86_64 already installed and latest version
    Nothing to do
    
    #显示我已经安装过git,并显示了版本信息

     

  • 安装git截图

        之前安装git的截图

        091325_UNIh_39617.png 

        091335_RCnr_39617.png

        091344_u1Ae_39617.png

  • 测试git命令

  • [root@localhost listen]# git
    usage: git [--version] [--help] [-c name=value]
               [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
               [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
               [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
               <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
    
    'git help -a' and 'git help -g' lists available subcommands and some
    concept guides. See 'git help <command>' or 'git help <concept>'
    to read about a specific subcommand or concept.
    [root@localhost listen]# 

     

over!

转载于:https://my.oschina.net/Listening/blog/673813

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值