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;">





  • 相关阅读:
    Android Studio代码自己主动检測错误提示
    uva 1567
    UWP 新手教程2——怎样实现自适应用户界面
    远程服务的使用场景
    本地服务和远程服务
    本地应用调用远程服务中的方法
    混合方式开启服务
    绑定服务抽取接口
    绑定服务调用服务里的方法
    bind绑定服务的生命周期
  • 原文地址:https://www.cnblogs.com/xuxaut-558/p/9910826.html
Copyright © 2011-2022 走看看