摘要:1. 修改git默认的编辑器nano为vim的两种方法 git config --global core.editor vim .git/config文件,在[core]中添加 editor = vim 2. 忽略权限的diff git status一片红色,往往只是因为文件的读写执行权限发生了变化
阅读全文
09 2021 档案
摘要:1. 修改git默认的编辑器nano为vim的两种方法 git config --global core.editor vim .git/config文件,在[core]中添加 editor = vim 2. 忽略权限的diff git status一片红色,往往只是因为文件的读写执行权限发生了变化
阅读全文
摘要:1. 原因 可能GitHub的IP经常变化,导致DNS无法解析 2. 查询IP The Best IP Address, Email and Networking Tools - IPAddress.com查询github.com的ip 3. 解决方法1: 修改C:\Windows\System32
阅读全文
摘要:1. 编译和链接 gcc hello.c执行的四个步骤: #预处理(Prepressing) gcc -E hello.c -o hello.i #编译(Compilation) gcc -S hello.i -o hello.s gcc -S hello.c -o hello.s #汇编(Asse
阅读全文
摘要:1. 在 Windows 10 上安装 WSL | Microsoft Docs 下载适用于 x64 计算机的 WSL2 Linux 内核更新包 PowerShell: wsl --set-default-version 2 2. 控制面板->应用->程序和功能->启用或关闭windows功能 勾选
阅读全文
摘要:Centos #关闭防火墙:stop暂时关闭,disable永久关闭 setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config systemctl stop firewalld systemctl
阅读全文
|