Git学习

一、创建版本库

git init

1.把文件添加到版本库中
创建文件txt——》git add命令把文件天添加到暂存区——》git commit -m "注释"提交到仓库——》git status查看状态/git diff 文件 查看文件修改内

二、版本退回

三、创建本地仓库、克隆远程仓库
本地搭建仓库

git init

克隆远程仓库

git clone [URL]

文件四种状态

![enter description here][2]

git拉取指定分支

git clone -b 指定分支 https://........git

相关推荐

  1. <span style='color:red;'>git</span><span style='color:red;'>学习</span>

    git学习

    2024-04-22 08:04:05      58 阅读
  2. <span style='color:red;'>Git</span><span style='color:red;'>学习</span>

    Git学习

    2024-04-22 08:04:05      50 阅读
  3. <span style='color:red;'>git</span><span style='color:red;'>学习</span>

    git学习

    2024-04-22 08:04:05      57 阅读
  4. 学习GIT

    2024-04-22 08:04:05       48 阅读
  5. <span style='color:red;'>Git</span><span style='color:red;'>学习</span>

    Git学习

    2024-04-22 08:04:05      44 阅读
  6. Git学习

    2024-04-22 08:04:05       34 阅读
  7. git 学习笔记

    2024-04-22 08:04:05       63 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-22 08:04:05       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-22 08:04:05       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-22 08:04:05       87 阅读
  4. Python语言-面向对象

    2024-04-22 08:04:05       96 阅读

热门阅读

  1. 顺序表练习

    2024-04-22 08:04:05       39 阅读
  2. TypeScript中什么是类类型接口?

    2024-04-22 08:04:05       39 阅读
  3. conda离线状态安装环境:更快安装环境的方式

    2024-04-22 08:04:05       29 阅读
  4. MySQL数据库——17.正则表达式

    2024-04-22 08:04:05       35 阅读
  5. 在ts中const和readonly区别?

    2024-04-22 08:04:05       38 阅读
  6. 课时101:正则表达式_基础实践_字符匹配

    2024-04-22 08:04:05       37 阅读
  7. 数据结构-排序

    2024-04-22 08:04:05       29 阅读
  8. 身份证实名接口和身份证OCR接口的组合使用

    2024-04-22 08:04:05       41 阅读