Git

来源:互联网 发布:unity3d 汽车模型 编辑:程序博客网 时间:2024/06/05 02:28

1. 初始化

git config --global user.name "Name"git config --global user.email “email@foxmail.com”

2.本地目录变仓库

mkdir testcd testpwdgit init
3. 添加文件

git add a.txtgit commit -m "add a txt"git status
git log

 

4. 回到某个状态

git reset hard .......................................




0 0