zoukankan      html  css  js  c++  java
  • Git学习笔记

    1.安装及建立Git仓库:

      1).安装完成后首先设置用户名和Email:

        $ git config --global user.name "用户名"

        $ git config --global user.email "邮箱"

      2).新建仓库(Git可以使用当前系统的命令, Windows版甚至可以使用Linux上面的Vim等工具)

        首先进入到需要创建Git仓库的目录

        $ git init

    2.文件创建及同步:

      1).在svn版本库中创建文件后(如我在仓库根目录中创建了个hello.c)

        $ git add hello.c

        用add命令将hello.c添加到仓库,也可以同时添加多个文件:

        $ git add hello1.c hello2.c hello3.c

      2).把hello.c提交到仓库

        $ git commit -m "提交说明"

    3.版本控制

      1).修改内容后可以使用下列命令查看修改了哪些内容:

        $ git status

      2).使用下面的命令查看具体修改的内容:

        $ git diff hello.c

  • 相关阅读:
    MySQL——UPDATE更新
    MySQL——WHERE字句
    MySQL——查询数据
    MySQL——删除数据表
    MySQL——插入数据
    MySQL——创建数据表
    MySQL——数据类型
    MySQL——选择数据库
    MySQL——删除数据库
    MySQL——创建数据库
  • 原文地址:https://www.cnblogs.com/skyfffire/p/6511764.html
Copyright © 2011-2022 走看看