自思

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

查看历史版本
git log

恢复到某个版本
git reset --hard 44bd896bb726be3d3815f1f25d738a9cd402a477

初始化仓库
git init

添加到远程仓库
git remote add origin xxxx.git

添加改变,提交到仓库
git add .
git commit -m "xxx"

强制push到远程
git push -f origin develop

git pull origin develop --allow-unrelated-histories

posted on 2018-07-26 17:37  191-bloger  阅读(114)  评论(0编辑  收藏  举报