git

# Command

## git send-email

```sh
tokunori@tokunori-desktop:~/linux$ git send-email 0001-nvme-rdma-nvme-tcp-include-max-reconnects-for-failed.patch
0001-nvme-rdma-nvme-tcp-include-max-reconnects-for-failed.patch
To whom should the emails be sent (if anyone)? linux-nvme@lists.infradead.org 
Message-ID to be used as In-Reply-To for the first email (if any)? 
(mbox) Adding cc: Tokunori Ikegami <ikegami.t@gmail.com> from line 'From: Tokunori Ikegami <ikegami.t@gmail.com>'
(body) Adding cc: Tokunori Ikegami <ikegami.t@gmail.com> from line 'Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>'

From: Tokunori Ikegami <ikegami.t@gmail.com>
To: linux-nvme@lists.infradead.org
Cc: Tokunori Ikegami <ikegami.t@gmail.com>
Subject: [PATCH] nvme-rdma, nvme-tcp: include max reconnects for failed reconnect logging
Date: Sun,  5 May 2024 21:03:05 +0900
Message-ID: <20240505120324.20858-1-ikegami.t@gmail.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
OK. Log says:
Server: smtp.gmail.com
MAIL FROM:<ikegami.t@gmail.com>
RCPT TO:<linux-nvme@lists.infradead.org>
RCPT TO:<ikegami.t@gmail.com>
From: Tokunori Ikegami <ikegami.t@gmail.com>
To: linux-nvme@lists.infradead.org
Cc: Tokunori Ikegami <ikegami.t@gmail.com>
Subject: [PATCH] nvme-rdma, nvme-tcp: include max reconnects for failed reconnect logging
Date: Sun,  5 May 2024 21:03:05 +0900
Message-ID: <20240505120324.20858-1-ikegami.t@gmail.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: 250 
```

## git tag

### commit

https://blog.eiel.info/blog/2014/05/28/cotains-commit-in-tags/

```sh
tokunori@tokunori-desktop:~/linux$ #git tag -l --contains 31a5978243d24
nvme-6.4-2023-06-01
nvme-6.5-2023-07-13
nvme-6.5-2023-08-02
nvme-6.6-2023-09-14
nvme-6.6-2023-10-18
nvme-6.7-2023-10-17
...
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
v6.7-rc2
```

## git rebase

https://qiita.com/Nunocky/items/137021f63932600a1723

## git log

https://stackoverflow.com/questions/35945860/view-git-log-without-merge-commits

- --no-merges
- --first-parent

# Windows

https://scrapbox.io/mouse/Git_for_Windowsでgit_error:_invalid_pathが起きる時

https://github.com/analogdevicesinc/linux/issues/111#issuecomment-1091276029

## git clone

```
tokunori@DESKTOP-ESV85JT:~$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Cloning into 'linux'...
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/': server certificate verification failed. CAfile: none CRLfile: none
```

```
tokunori@DESKTOP-ESV85JT:~$ #sudo apt update
tokunori@DESKTOP-ESV85JT:~$ #sudo apt upgrade
```

### ca-certificates

https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c

```
tokunori@DESKTOP-ESV85JT:~$ sudo apt install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  ca-certificates
1 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
Need to get 145 kB of archives.
After this operation, 1024 B disk space will be freed.
Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.2
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.2
  404  Not Found [IP: 91.189.91.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20210119~20.04.2_all.deb  404  Not Found [IP: 91.189.91.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```

https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c

## WSL

https://learn.microsoft.com/ja-jp/windows/wsl/install