小编And*_* II的帖子

有谁知道如何让 github ssh 在 2019 年 12 月在 WSL(Linux 的 Windows 子系统)上正确工作

我需要运行 Windows 进行视频编辑,但我也做一些编码。Linex 是一头野兽,我希望能够在我的 Windows 计算机上使用 WSL,并且能够从 WSL 执行 ssh。我正在尝试启动一个线程,人们可以在该线程中按照 WSL 和 Github ssh 在 Windows 上的步骤操作。有人可以帮我弄清楚我做错了什么,以便其他人也可以使用 WSL 和 Github 吗?

我的步骤:

  1. 重置窗口
  2. 转到此站点并安装 WSL https://docs.microsoft.com/en-us/windows/wsl/install-win10 我选择了 Ubuntu 18.04 LTS:https : //www.microsoft.com/en-us/p/ ubuntu-1804-lts/9n9tngvndl3q?rtc=1&activetab=pivot:overviewtab
  3. 设置和升级 Ubuntu:
    sudo apt update && sudo apt upgrade
  4. 使用此网站安装 VS Code:https : //code.visualstudio.com/docs/remote/wsl
  5. 安装远程开发包:https ://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
  6. 使用默认值在 Windows 上设置 gitbash
  7. 使用此站点设置 git ssh:https : //help.github.com/en/github/authenticating-to-github/checking-for-existing-ssh-keys
  8. git clone 是否进行了更改并推送到 master 以确保一切正常,确实如此。
  9. 添加了一个 .gitattributes 文件到 repo
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf …
Run Code Online (Sandbox Code Playgroud)

git github windows-subsystem-for-linux

8
推荐指数
3
解决办法
7018
查看次数

如何使用NetlifyCMS和Gatsby将子弹显示在graphql中?

在站点上添加netlify cms时,如何将子弹显示在graphql中?我有一个博客文章集,除了子弹外,所有内容都显示出来:

backend:
  name: git-gateway
  branch: master # Branch to update (optional; defaults to master)

media_folder: static/images
public_folder: /images

collections:
  - name: "blog"
  label: "Blog"
  folder: "content/blogPost"
  create: true
  slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
  fields: # The fields for each document, usually in front matter
    - { label: "Layout", name: "layout", widget: "hidden", default: "blog" }
    - { label: "Title", name: "title", widget: "string" }
    - { label: "Publish Date", name: "date", widget: "datetime" }
    - { label: "Featured Image", name: "thumbnail", widget: …
Run Code Online (Sandbox Code Playgroud)

gatsby netlify netlify-cms

3
推荐指数
1
解决办法
475
查看次数

当我运行 gatsby build 时,gatsby js 有模糊的图像

我有一个需要在内部服务器上运行的站点。我无权访问该站点,我只是要进行 gatsby 构建并将公共文件夹提供给他们。但我所有的图像都是一团糟。这是正确的方法吗?为什么我的图像模糊

gatsby gatsby-image

1
推荐指数
1
解决办法
3358
查看次数