git学习总结

git init      //初始化

git add .    //当前文件夹所有东西添加进去(后边的点表示该页面所有)

git status   //查看当前的状态

git commit -m"(添加所注释内容)"  //提交

git reset --hard caa...  //回退到该caa...

git log   //提交日志

git reflog //操作日志

git reset --hard caa...  //回退到该caa...

{

每次回退修改后提交需要

git add .

git commit -m"注释"

}

git remote add origin https://用户名:密码@github.com/ys233/test.git  //创建远程的链接

git push -u origin master//上传

原文地址:https://www.cnblogs.com/yuanshuo/p/7137577.html