学习Git基本操作

2018-09-17  本文已影响0人  不和谐发光体

#Git命令行基本操作

##安装Git

-官网下载

-启动Git Bash

-输入$ git config --global user.name"Your Name"

         $ git config --global user.email"email@example.com"

##基本操作(命令行)

-创建并进入learngit库

-git add 添加新增(在暂存区)

-git stutas查看当前状态

-git commit -m" "存入提交

-git status再次查看状态

-git log查看日志

-git reset --hard 版本号前几位,回退版本

-git reflog查看历史操作记录

上一篇 下一篇

猜你喜欢

热点阅读