随笔分类 -  GIT

摘要:版本回退 git reset --hard commit_id 退到/进到 指定commit的sha码强推到远程: git push origin HEAD --force 创建tag git tag //查看tag git tag test_tag c809ddbf83939a89659e51dc 阅读全文
posted @ 2022-05-27 11:48 salami_china 阅读(28) 评论(0) 推荐(0) 编辑
摘要:原文参考链接:https://www.runoob.com/git/git-reset.html git reset 命令用于回退版本,可以指定退回某一次提交的版本。 git reset 命令语法格式如下: git reset [--soft | --mixed | --hard] [HEAD] - 阅读全文
posted @ 2021-11-04 20:07 salami_china 阅读(210) 评论(0) 推荐(0) 编辑
摘要:问题:git pull 下载失败 现象: git clone https://github.com/NVIDIA/k8s-device-plugin.git fatal: unable to access 'xxx': Encountered end of file 解决:https改成git gi 阅读全文
posted @ 2021-09-29 10:39 salami_china 阅读(2918) 评论(0) 推荐(0) 编辑
摘要:原文链接:http://www.qishunwang.net/news_show_55525.aspx 因为公司的分部仓库服务器挂了,需要将项目代码迁移到新的仓库。 完整迁移,不仅将所有代码移植到新的仓库,而且要保留所有的commit记录,branch记录,tag记录等等。 比如老仓库的地址是htt 阅读全文
posted @ 2021-04-22 21:51 salami_china 阅读(388) 评论(0) 推荐(0) 编辑
摘要:git config --global color.ui true 阅读全文
posted @ 2019-05-22 10:34 salami_china 阅读(672) 评论(0) 推荐(0) 编辑
摘要:git config --global user.name "wangjunqiang" git config --global user.email "wangjq@xxx.com" ssh-keygen -t rsa -C "wangjq@xxx.com" [root@localhost ~]# 阅读全文
posted @ 2019-05-14 17:03 salami_china 阅读(582) 评论(0) 推荐(0) 编辑
摘要:git clone --branch x.x.x https://xxx.xxx.com/xxx/xxx.git 阅读全文
posted @ 2019-04-12 12:04 salami_china 阅读(4759) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示