zoukankan      html  css  js  c++  java
  • 6.Git工具

    Git工具分类

    Git工具的下载与安装

    • 一般启动用Git Bash

    设置Git Bash 环境

    LOOKS - CURSOR 光标颜色

    在E盘放仓库

    -在某一个盘建立仓库
    -GitBash后面的波浪线代表当前目录

    Bash命令体验


    Welcome to Git (version 1.9.5-preview20150319)

    Run 'git help git' to display the help index.
    Run 'git help ' to display help for specific commands.

    Administrator@SKY-20170313FFD /E/Github
    $ pwd
    /E/Github

    Administrator@SKY-20170313FFD /E/Github
    $ mkdir hello

    Administrator@SKY-20170313FFD /E/Github
    $ cd hello

    Administrator@SKY-20170313FFD /E/Github/hello
    $ pwd
    /E/Github/hello

    Administrator@SKY-20170313FFD /E/Github/hello
    $ echo hello
    hello

    Administrator@SKY-20170313FFD /E/Github/hello
    $ echo 'hello' > a.txt

    Administrator@SKY-20170313FFD /E/Github/hello
    $ cat a.txt
    hello

    Administrator@SKY-20170313FFD /E/Github/hello
    $ cp a.txt b.txt

    Administrator@SKY-20170313FFD /E/Github/hello
    $ ls ..
    Git github.jpg hello

    Administrator@SKY-20170313FFD /E/Github/hello
    $ move b.txt ../b.txt
    sh: move: command not found

    Administrator@SKY-20170313FFD /E/Github/hello
    $ mv b.txt ../b.txt

    Administrator@SKY-20170313FFD /E/Github/hello
    $ ls
    a.txt

    Administrator@SKY-20170313FFD /E/Github/hello
    $ mv a.txt c.txt

    Administrator@SKY-20170313FFD /E/Github/hello
    $ rm c.txt

    git config --list 查看配置信息

    配置:

    git config --global user.name "wangding"
    git config --global user.email "xxxxxxx"

    git version 查看安装环境

    <wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">





  • 相关阅读:
    内存优化
    OpenThreads库学习
    WPS/office使用技巧系列
    NB-IOT学习
    JSON和XML
    物联网平台学习
    .net提供的5种request-response方法一
    HTML5之IndexedDB使用详解
    jQuery圆形统计图实战开发
    用javascript将数据导入Excel
  • 原文地址:https://www.cnblogs.com/xuxaut-558/p/9910826.html
Copyright © 2011-2022 走看看