git 常用操作

出现error: The following untracked working tree files would be overwritten by checkout

git clean -d -fx

强制本地覆盖服务器分支代码
git push origin master --force
关联服务器
git remote add origin https://gitee.com/mirYan/qqqqq.git
强制上传
git push -u origin master
查看提交历史
git log 
回滚
git reset commit_id 

 

posted @ 2018-09-15 11:04  五艺  阅读(81)  评论(0)    收藏  举报