5
Git项目指南——入门-第一个Git项目——2021.1.15
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环境
- 下载路径:
https://git-scm.com/downloads
- 配置邮箱:
git config --global user.email "......"
- 配置用户名:
git config --global user.name "...."
二丶创建版本库
cd projects/first-steps
git init
三丶首次提交
ls
git add Blockchain_Key.txt Ting.txt
git commit --message "Sample project imported."
四丶检查状态
git status
①删除Ting.txt
②添加Ting.Html
③检查状态
五丶提交修改
git add Blockchain_Key.txt Ting.html
git rm Ting.txt
git commit --message "Some change."
六丶显示历史
git log
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK