
leetcode
leetcode
highgerms
不畏将来 不念过往
展开
-
git@github.com出现Permission denied (publickey)
转载于:cnblog 青春阳光 一般来说,大家在给文件起名的时候,总会起一些自己喜欢的名字,楼主也不例外在使用命令: ssh-keygen 生成ssh 密钥的时候,会在 Enter file in which to save the key ("当前所在路径"): “给文件起个名字” 这里随便起一个名字,这样问题就出来了,你起的这个名字没有和ssh内设定的名字保持一致,所以使...转载 2019-12-07 22:50:47 · 531 阅读 · 0 评论 -
Could not open a connection to your authentication agent.
ssh-add -l 查看加入的密钥列表 Could not open a connection to your authentication agent. 依次输入: eval `ssh-agent` ssh-add ~/.ssh/id_rsa ssh-add -l 即可 当然不一定是id_rsa这个名字,当初你取得什么名字就用什么 ...原创 2019-12-07 22:48:21 · 299 阅读 · 0 评论 -
GIT小白
清除设置 $ git config --unset --local user.name $ git config --unset --global user.name $ git config --unset --system user.name git add -u:将文件的修改、文件的删除,添加到暂存区。 git add .:将文件的修改,文件的新建,添加到暂存区。 git add -...原创 2019-12-05 22:13:43 · 165 阅读 · 0 评论 -
字母异位词判断代码
好吧,我承认。 我tcl 两个单词如果包含相同的字母,次序不同,则称为字母易位词(anagram) class Solution { public: bool isAnagram(string s, string t) { if (s.size() != t.size()){ return false; } sort...原创 2019-11-13 21:08:31 · 486 阅读 · 0 评论