1. 背景
由于之前的加水印脚本存在问题,在对同一张图片进行加水印时,会有一定的概率产生不一样md5的图片,在git提交的时候,就认为被修改了,从而被提交的github仓库中,如此反反复复,到现在已经有11个G大小了;今天把水印脚本重写了一下,解决了上述问题,所以准备给之前的垃圾提交清理了,让我的博客变成一个“新库”。
2. 过程
创建并切换到孤儿分支(该分支与现有分支无关,完全独立)
git
原创
2023-05-07 09:39:38
265阅读
打开shell:git commit -a然后重新在github desktop中commit & sync
原创
2022-08-05 08:18:55
66阅读
有以下三种方法可以删除 commit :1. git reset
git reset :回滚到某次提交。
git reset --soft:此次提交之后的修改会被退回到暂存区。
git reset --hard:此次提交之后的修改不做任何保留,git status 查看工作区是没有记录的。 1.1、回滚代码 如果需要删除的 commit 是最新的,那么可以通过
转载
2024-03-28 11:21:09
770阅读
https://code.angularjs.org/1.0.6/docs/tutorial/step_00里面提到启动web-server.js,现在这个教程以及随着版本的更新而更新,这个文件已经没有了。对应1.0.6的版本的最后一次在github上的提交的commitid30fcebb5d6ca44ebd84ec0db769c44ffe1ef52b8ps:如何在所有的分支及提交记录种查找某个文
原创
2018-05-29 21:20:14
785阅读
如题,如果无法commit,应该是改变了项目结构,只需要打开git shell,输入git commit -a,再重新commit即可
原创
2022-08-24 11:12:51
301阅读
命令行 在第三步 1中 选择 eval $(ssh-agent -s) 命令SSH / Generating SSH keysGenerating SSH keys mac windows linux al...
原创
2023-06-04 22:16:54
123阅读
1 github的提供给用户操作和交流的几个对象 commit, issue, pull request and project 2 commit and commit comment commit就是git里面的普通的提交,而对于任何一次的提交,都可以进行comment。 3 pull reque
转载
2017-02-25 12:05:00
242阅读
2评论
先查看提交日志 然后复制你所需要回到的commit版本的id(即commit 后面的字符) 本地回退 将远程库同步 说明,比如我要回滚当前的这次...
原创
2022-07-13 21:36:18
211阅读
删除github上的commit历史记录起步今天小编发现了git克隆下来的远程库特别大:经过查询之后发现是每次推送之后都会留下记录缓存,这样很多没用的记录就会占用多余的空间,别人克隆的时候也会多耗费时间,今天我查到了一个清除无用记录的方法。# 克隆你的远程仓库git clone git@github.com:victorfengming/victorfengming.github.io...
原创
2021-08-26 09:32:32
957阅读
修改github commit 的作者信息git配置详解
原创
2022-01-26 11:14:40
433阅读
修改github commit 的作者信息git配置详解
原创
2021-07-08 14:08:22
963阅读
url格式:https://github.com/SAP/spartacus/commit/commit hash可以从source tree里获得:
原创
2021-07-13 13:54:33
190阅读
commit和commit -a的区别, commit -a相当于: 第一步:自动地add所有改动的代码,使得所有的开发代码都列于index file中 第二步:自动地删除那些在index file中但不在工作树中的文件 第三步:执行commit命令来提交对于有删除文件,可以git comm
原创
2013-01-10 23:35:41
1615阅读
I'm using visual studio 2019, and I'm faced with 3 options for when I commit my C# code. I need an explanation of the differences between each of the
原创
2023-10-10 11:28:49
280阅读
StackOverflow上有网友问起标题里描述的问题:https://stackoverflow.com/questions/17818167/find-a-pull-request-on-github-where-a-commit-was-originally-e
原创
2021-07-13 13:54:02
212阅读
StackOverflow上有网友问起标题里描述的问题:https://stack
原创
2022-04-12 15:44:46
172阅读
本文介绍Idea进行Undo Commit,Revert Commit,Drop Commit的区别。
原创
2022-09-04 00:06:21
4582阅读
git -- git emoji列表(github commit 前面的小icon)
原创
2022-11-18 00:23:03
224阅读
git initmd testcd testgit statusgit add test //git add test/a.txtgit status git remote add origin git@github.com:dennysjchen/web.git //git@github.com:
原创
2021-07-23 14:13:24
359阅读