5

Git项目指南——入门-第一个Git项目——2021.1.15

 3 years ago
source link: https://blog.csdn.net/weixin_43402353/article/details/112673024
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

作者:Blockchain_Key
时间:2021-1-15
环境:Git Bash(Windows)

一丶准备Git环境

  1. 下载路径: https://git-scm.com/downloads
  2. 配置邮箱:git config --global user.email "......"
  3. 配置用户名:git config --global user.name "...."

二丶创建版本库

  1. cd projects/first-steps
  2. git init
    在这里插入图片描述

三丶首次提交

  1. ls
  2. git add Blockchain_Key.txt Ting.txt
  3. git commit --message "Sample project imported."
    在这里插入图片描述

四丶检查状态

  1. git status
    在这里插入图片描述
    ①删除Ting.txt
    ②添加Ting.Html
    ③检查状态
    在这里插入图片描述

五丶提交修改

  1. git add Blockchain_Key.txt Ting.html
  2. git rm Ting.txt
  3. git commit --message "Some change."

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

六丶显示历史

  1. git log
    在这里插入图片描述

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK