首页 > 其他 > 详细

Git 常用操作

时间:2021-09-02 15:43:09      阅读:17      评论:0      收藏:0      [点我收藏+]

git config --global user.email xxx@xx.com
git config --global user.name xxx
git config --global http.sslVerify false
git clone https://xxx.git
git branch -a 查看远程分支
git restore file 还原一个文件
git reset --soft HEAD^ 取消最近commit

git reset --hard

运行命令 git reset --hard 刚刚复制的commitId,就可以成功回退到那个版本。

--撤销push
git log
git reset --soft commit-id
git log
git push origin master --force


git checkout 分支名称

 

文件名太长

git config --system core.longpaths true

Git 常用操作

原文:https://www.cnblogs.com/blog-ice/p/15217162.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!