进入目录
git bash
git ssh & git clone
git add
git push
git rm --cached
: LF will be replaced by CRLF
1. 查看core.autocrlf属性
默认core.autocrlf属性设置如下。
C:\Sam\works\bba-master>git config --global --get core.autocrlf
C:\Sam\works\bba-master>git config --get core.autocrlf
true
2. 设置core.autocrlf属性
设置core.autocrlf属性为false,去除警告如下(只是眼不见心不烦罢了)。
C:\Sam\works\bba-master>git config core.autocrlf false
C:\Sam\works\bba-master>git config --get core.autocrlf
false
C:\Sam\works\bba-master>git add mywebdav.conf
重新提交
git 恢复某个文件
$ git log commit 9a3cbee1fc06a5e1fb32f5a99d49aef021ba4bae (HEAD -> main, origin/main) Author: Date: Mon Jan 10 19:29:36 2022 +0800 debug commit db31ef2087ed46fde0cf57025b16c73b6a6b6a3c Author: Date: Mon Jan 10 16:34:09 2022 +0800 debug commit 4e5165b6df549280c57713276db4f889c41d50f7 Author: Date: Mon Jan 10 16:32:31 2022 +0800 debug commit 10e5d9a82bb7060350030a3f921f5baa4ac35fe1 Author: Date: Mon Jan 10 14:22:40 2022 +0800 how to make opensbi for qemu $ git checkout db31ef2087ed46fde0cf57025b16c73b6a6b6a3c README.md Updated 1 path from 9e3311a 86135@LAPTOP-BA80NAF0 MINGW64 sbi-fw (main) $ ls 2qa BuildEnvironment.mk FreeRTOS-Kernel FreeRTOSConfig.h Makefile README.md blinky_demo build debug.txt driver fw_jump.elf it.c link.lds main.c riscv startup.S stubs 86135@LAPTOP-BA80NAF0 MINGW64 sbi-fw (main) $
git分段
方法一
#+空格+标题
# =============================== run
方法二
RISC-V Open Source Supervisor Binary Interface (OpenSBI)
========================================================
方法三
Building 32-bit / 64-bit OpenSBI Images ---------------------------------------