我需要运行 Windows 进行视频编辑,但我也做一些编码。Linex 是一头野兽,我希望能够在我的 Windows 计算机上使用 WSL,并且能够从 WSL 执行 ssh。我正在尝试启动一个线程,人们可以在该线程中按照 WSL 和 Github ssh 在 Windows 上的步骤操作。有人可以帮我弄清楚我做错了什么,以便其他人也可以使用 WSL 和 Github 吗?
我的步骤:
- 重置窗口
- 转到此站点并安装 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
- 设置和升级 Ubuntu:
sudo apt update && sudo apt upgrade
- 使用此网站安装 VS Code:https : //code.visualstudio.com/docs/remote/wsl
- 安装远程开发包:https ://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
- 使用默认值在 Windows 上设置 gitbash
- 使用此站点设置 git ssh:https : //help.github.com/en/github/authenticating-to-github/checking-for-existing-ssh-keys
- git clone 是否进行了更改并推送到 master 以确保一切正常,确实如此。
- 添加了一个 .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)