zoukankan      html  css  js  c++  java
  • git中一些常用的命令

    Q1:常用命令

    git --version   版本
    clear 清除
    ls 所有信息
    cd 进入目录
    cd .. 退出一步     空格
    mkdir 创建目录
    rm project2 -r 删除目录
    echo hello > f1.txt 往一个文件里面放一个txt并且往里面输入hello              追加
    cat f1.txt 查看里面的内容
    rm f1.txt -f 删除文件
    创建git仓库
    git init 初始化创库
    echo hello git > f1.txt 添加一个文件
    git status 查看状态
    git add -h 加入
    git add .
    git commit -m初始化仓库()提交
    git remote 查看
    git remote add origin http...
    git push -u origin master推出
    git config --global user.name "" #名称
    git config --global user.email 334444 #邮箱
    git remote -v查看地址
    history历史
    exit退出

     步骤:

    1.进入文件
    cd project4
    2.初始化
    git init
    3.创建文件
    echo > f1.txt
    4.查看
    ls
    5.加入
    git add .
    6.初始化项目
    git commit -m初始化项目
    7.路径
    git remote add origin   
    8.推
    git push -u origin master

     

    zywds
  • 相关阅读:
    centos vsftpd
    centos nginx
    linux 修改配色
    面试题讲解
    文件操作
    Python
    Python-linux作业
    python(12.17)笔记
    python周末作业(12.14--16)
    python作业(12.12)
  • 原文地址:https://www.cnblogs.com/zywds/p/9675059.html
Copyright © 2011-2022 走看看