Sync "Submodules" with en for zh-TW

This commit is contained in:
lumynou5 2023-06-23 15:59:41 +08:00
parent bee4819794
commit 589f1e474e
No known key found for this signature in database
1 changed files with 17 additions and 2 deletions

View File

@ -109,8 +109,10 @@
- [我想找到包含特定檔案的提交](#%E6%88%91%E6%83%B3%E6%89%BE%E5%88%B0%E5%8C%85%E5%90%AB%E7%89%B9%E5%AE%9A%E6%AA%94%E6%A1%88%E7%9A%84%E6%8F%90%E4%BA%A4)
- [我想找到特定函式的歷史記錄](#%E6%88%91%E6%83%B3%E6%89%BE%E5%88%B0%E7%89%B9%E5%AE%9A%E5%87%BD%E5%BC%8F%E7%9A%84%E6%AD%B7%E5%8F%B2%E8%A8%98%E9%8C%84)
- [我想找到引用特定提交的標籤](#%E6%88%91%E6%83%B3%E6%89%BE%E5%88%B0%E5%BC%95%E7%94%A8%E7%89%B9%E5%AE%9A%E6%8F%90%E4%BA%A4%E7%9A%84%E6%A8%99%E7%B1%A4)
- [雜項](#%E9%9B%9C%E9%A0%85)
- [子模組](#%E5%AD%90%E6%A8%A1%E7%B5%84)
- [複製所有子模組](#%E8%A4%87%E8%A3%BD%E6%89%80%E6%9C%89%E5%AD%90%E6%A8%A1%E7%B5%84)
- [移除子模組](#%E7%A7%BB%E9%99%A4%E5%AD%90%E6%A8%A1%E7%B5%84)
- [雜項](#%E9%9B%9C%E9%A0%85)
- [刪除標籤](#%E5%88%AA%E9%99%A4%E6%A8%99%E7%B1%A4)
- [恢復已刪除標籤](#%E6%81%A2%E5%BE%A9%E5%B7%B2%E5%88%AA%E9%99%A4%E6%A8%99%E7%B1%A4)
- [已刪除修補檔](#%E5%B7%B2%E5%88%AA%E9%99%A4%E4%BF%AE%E8%A3%9C%E6%AA%94)
@ -1526,7 +1528,7 @@ $ git log -L :[函式名稱]:[檔案路徑]
$ git tag --contains [提交]
```
## 雜項
## 子模組
### 複製所有子模組
@ -1540,6 +1542,19 @@ $ git clone --recursive git://github.com/foo/bar.git
$ git submodule update --init --recursive
```
### 移除子模組
創建子模組很直覺,但刪除不是,你需要:
```sh
$ git submodule deinit [子模組名稱]
$ git rm [子模組名稱]
$ git rm --cached [子模組名稱]
$ rm -rf .git/modules/[子模組名稱]
```
## 雜項
### 刪除標籤
```sh