赞
踩
git config --global -l #查看全局配置
git config --global user.name "xhh0608"
git config --global user.email "xhh0608@foamail.com"
git init #生成隐藏文件夹“.git”,暂存区和历史区都在其中!
git add xxx #把一个文件/文件夹提交至暂存区
git add . #把仓库所有文件提交至暂存区
# 清除暂存区的内容
git rm --cached <file>
git status # 查看文档状态[红色-工作区,绿色-暂存区,无-工作区]
git commit -m "描述信息:本次提交的第一描述" # 把暂存区内容提交至历史区
# 查看当前及以前的信息
git log
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。