zoukankan      html  css  js  c++  java
  • git 入门 2

    进入d盘,新建project文件,

    右键,git bash here

    cd project

    初始化

    $ git init

    克隆项目

    $ git clone http://192.168.1.188:3000/wzd/test.git

    在project/test下新建一个a.txt

    选择所有项目

    $ git add .

    提交说明

    $ git commit -m "Initial commit."

    报错

    *** Please tell me who you are.
    
    Run
    
      git config --global user.email "you@example.com"
      git config --global user.name "Your Name"
    
    to set your account's default identity.
    Omit --global to set the identity only in this repository.
    
    fatal: unable to auto-detect email address (got 'fleam@FLEAM-PC.(none)')

    设置邮箱

    $ git config --global user.email "1026367714@qq.com"

    设置用户名

    $ git config --global user.name "wzd"

    继续提交说明

    $ git commit -m "Initial commit."

    上传设置,用http的方式,不用ssh

    $ git remote add origin http://192.168.1.188:3000/wzd/test.git

    上传

    $ git push origin master

    填出对话框,输入账号密码等信息

  • 相关阅读:
    常见错误3——错误2 error C2143: 语法错误 : 缺少“;”(在“}”的前面)
    MFC DLL封装窗体详细步骤
    指针函数与函数指针的区别
    DOM
    BOM
    JS动态创建元素
    JS节点
    事件和节点部分总结
    DOM基础
    自定义对象
  • 原文地址:https://www.cnblogs.com/hellowzd/p/5908577.html
Copyright © 2011-2022 走看看