> For the complete documentation index, see [llms.txt](https://bryant-huang.gitbook.io/git/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bryant-huang.gitbook.io/git/git-she-zhi/git-ji-ben-pei-zhi.md).

# Git 基本配置

Git 本機基本配置

## git 本機識別資料

因為git 會認機器，所以需要設定識別資料&#x20;

#### 查詢識別資料

```
git config --list
```

#### 設定識別資料

```
git config --global user.name "xxx"
git config --global user.email "abc@gmail.com"
```

#### 每個專案可以設定不同的作者

```
git config --local user.name "xxx"
git config --local user.email "abc@gmail.com"
```
