Hvenbko/Study2026.2
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Git使用教程 0.git本质上就是省去了修改文件版本后出现的很多文件的问题, 1.下载git 2.进入想要管理的文件夹 3.右键 bash here 4.初始化 git init 下面是常用指令 1)初始化如上 2)状态查询 git status 3)增加管理文件 git add 加文件名 . 4)提交版本 git commit -m‘描述信息’ 5) 查看日志 git log 6)回滚到以前版本 git reset --hard 版本号 7)回滚后 再回滚到回滚前版本 git reflog 查看版本号 git reset --hard 版本号 文件颜色代表: 1)红色 新增的文件/修改了的老文件 2)绿色 git已经管理起来了 推送阶段 git push git clone