草庐IT

signed-overflow

全部标签

git - 当你 `git commit --gpg-sign=<key-id>` 时正在签署什么数据?

我试图弄清楚如何手动签署/验证提交,但我无法弄清楚要签署哪些数据来创建签名。换句话说,我不知道是什么在gpg--verify需要。这是git源代码的相关部分:https://github.com/git/git/blob/master/commit.c#L1047-L1231但我也是C的新手。这是一些示例数据:在一个新的git仓库中,我创建了一个文件ledger.txt并通过签名提交提交:gitconfig--globaluser.signingkey7E482429gitinitecho"EAC5-531F-38E8-9670-81AE-4E77-C7AA-5FC3-7E48-242

git - 当你 `git commit --gpg-sign=<key-id>` 时正在签署什么数据?

我试图弄清楚如何手动签署/验证提交,但我无法弄清楚要签署哪些数据来创建签名。换句话说,我不知道是什么在gpg--verify需要。这是git源代码的相关部分:https://github.com/git/git/blob/master/commit.c#L1047-L1231但我也是C的新手。这是一些示例数据:在一个新的git仓库中,我创建了一个文件ledger.txt并通过签名提交提交:gitconfig--globaluser.signingkey7E482429gitinitecho"EAC5-531F-38E8-9670-81AE-4E77-C7AA-5FC3-7E48-242

git-mac os x : error: gpg failed to sign the data 上的 gpg

我从brew安装了GPG。brewinstallgpg它是gnupg2-2.0.30_2。当我提交时,我确实收到一条错误消息:Youneedapassphrasetounlockthesecretkeyforuser:"MaxMustermann(mycomment)"2048-bitRSAkey,ID1111AAAA,created2017-01-05error:gpgfailedtosignthedatafatal:failedtowritecommitobject我使用了命令:gpg--list-secret-keys|grep^sec它给了我返回:sec2048R/1111AA

git-mac os x : error: gpg failed to sign the data 上的 gpg

我从brew安装了GPG。brewinstallgpg它是gnupg2-2.0.30_2。当我提交时,我确实收到一条错误消息:Youneedapassphrasetounlockthesecretkeyforuser:"MaxMustermann(mycomment)"2048-bitRSAkey,ID1111AAAA,created2017-01-05error:gpgfailedtosignthedatafatal:failedtowritecommitobject我使用了命令:gpg--list-secret-keys|grep^sec它给了我返回:sec2048R/1111AA

git - "at"@ sign/symbol/character 在 Git 中是什么意思?

at符号@在git中经常使用到specifyrevisions在不同的方法。例如,@{}在上指定其状态的引用.示例:gitdiffmaster@{yesterday}master.@{}在第nth个先验状态下指定引用。示例:gitdiffmaster@{1}master.@{-}指定之前checkout的第nth个分支当前的。示例:gitcheckout@{-5}.@{upstream}指定引用的上游分支。示例:gitdiffmaster@{upstream}master.但是,@在git命令中也以其他方式使用,比如gitrebase-i@~4gitlog@^^..@at符号@是什么意

git - "at"@ sign/symbol/character 在 Git 中是什么意思?

at符号@在git中经常使用到specifyrevisions在不同的方法。例如,@{}在上指定其状态的引用.示例:gitdiffmaster@{yesterday}master.@{}在第nth个先验状态下指定引用。示例:gitdiffmaster@{1}master.@{-}指定之前checkout的第nth个分支当前的。示例:gitcheckout@{-5}.@{upstream}指定引用的上游分支。示例:gitdiffmaster@{upstream}master.但是,@在git命令中也以其他方式使用,比如gitrebase-i@~4gitlog@^^..@at符号@是什么意

linux - 在 Linux 中 : How can I create a symbolic link to a file whose name starts with a dash/minus sign ?

如何创建指向名称以破折号/减号(-)开头的文件的符号链接(symboliclink):?我有这个(-1是一个文件名):-rw-r--r--1rootroot1Mar904:35-1我想要这个:-rw-r--r--1rootroot1Mar904:35-1lrwx...1rootroot2Mar814:56myLink->-1============================================请注意,我不想这个lrwx...1rootroot2Mar814:56myLink->./-1我想要:lrwx...1rootroot2Mar814:56myLink->-1我试

linux - 在 Linux 中 : How can I create a symbolic link to a file whose name starts with a dash/minus sign ?

如何创建指向名称以破折号/减号(-)开头的文件的符号链接(symboliclink):?我有这个(-1是一个文件名):-rw-r--r--1rootroot1Mar904:35-1我想要这个:-rw-r--r--1rootroot1Mar904:35-1lrwx...1rootroot2Mar814:56myLink->-1============================================请注意,我不想这个lrwx...1rootroot2Mar814:56myLink->./-1我想要:lrwx...1rootroot2Mar814:56myLink->-1我试

c - 如何避免普通 "char"到 : "unsigned char" OR "signed char" conversion? 的 gcc 警告

我的默认字符类型是在gcc选项(-funsigned-chargcc)中设置的“unsignedchar”。所以可以说,当我在代码中需要“unsignedchar”时,我可以使用“char”。但是我收到关于(char*)和(unsignedchar*orsignedchar*)之间转换的警告:“错误:‘test2’传递参数1的指针目标的符号不同”。当我将unsignedchar*变量传递给char*时(知道我的系统具有由编译器选项设置的默认unsignedchar),如何避免警告?staticvoidtest2(char*a)//charisunsignedbydeafultasset

c - 如何避免普通 "char"到 : "unsigned char" OR "signed char" conversion? 的 gcc 警告

我的默认字符类型是在gcc选项(-funsigned-chargcc)中设置的“unsignedchar”。所以可以说,当我在代码中需要“unsignedchar”时,我可以使用“char”。但是我收到关于(char*)和(unsignedchar*orsignedchar*)之间转换的警告:“错误:‘test2’传递参数1的指针目标的符号不同”。当我将unsignedchar*变量传递给char*时(知道我的系统具有由编译器选项设置的默认unsignedchar),如何避免警告?staticvoidtest2(char*a)//charisunsignedbydeafultasset