git 的基本使用

mkdir 

cd 

cat 查看内容

 ls 

git clone url 

git pull

git status git add ./files git commit -m 'info'

git reset --hard HEAD^ 回退到上一个版本

git log 查看版本库的状态

git reflog 记录每一次的命令和版本号

git reset --hard 3628164 回退到指定的版本号

远程仓库
git remote add origin ulr 关联远程仓库
git push -u origin master 第一次推送内容到远程仓库上 以后直接git push
 






原文地址:https://www.cnblogs.com/hill-foryou/p/8436504.html