git常见命令

git add *文件名称 》把文件放到缓存区

git commit -m “说明”  》提交git数据

git diff 文件名  》文件区别

git status    》分支状态

git branch 分支名  》创建分支

git reset --hard HEAD^ 》撤回

git log  》记录

git clone git路径》克隆git项目

git config --global 》git配置信息

git init 》初始化本地仓库

git merge  》合并分支

git push 》提交本地分支到远程

原文地址:https://www.cnblogs.com/dongtong/p/6423121.html