git.remote学习 && hexo主题管理
前言最近把主题换成了hexo-butterfly,顺便把之前的文章迁移过来了。打算对这个主题做一些优化。但是优化后又要提交到git上,以便从其他电脑进行管理。然后如果hexo-butterfly的主题更新,我又要升级的话该怎么办。搜了下,发现git remote这个命令可以解决我的问题。 拉取最新的主题代码 我这里在github上面建了个仓库,模拟了下主题的更新。仓库地址 进入自己的hexo代码文件夹 执行git clone -b main git@github.com:oytoyt/theme-online.git themes/test模拟拉取最新的主题代码 进入到themes/test文件夹,执行git remote -v查看远程仓库地址。 123❯ git remote -vorigin git@github.com:oytoyt/theme-online.git (fetch)origin git@github.com:oytoyt/theme-online.git (push) 修改远程仓库地址 将原来的仓库地址改为upstream,执行git...
window配置git的ssh登录
前言这篇文章主要介绍window系统如何配置ssh,让git去用ssh的方式进行登录。开发环境:window 尝试拉取代码拉取代码:git clone git@gitee.com:ou_yanting/test.git。 提示如下 12345678910Cloning into 'test'...The authenticity of host 'gitee.com (180.97.125.228)' can't be established.ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list of known hosts.Permission...