-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46f3ddc
commit 0c32852
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.obsidian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
# 全局设置 | ||
|
||
```bash | ||
git config --global user.name "Your Name" | ||
git config --global user.email "[email protected]" | ||
|
||
# 查看全局配置 | ||
git config --global --list | ||
``` | ||
|
||
# 项目级别 | ||
|
||
编辑项目下 .git/config 配置文件: | ||
|
||
```bash | ||
$ vim .git/config | ||
``` | ||
|
||
设置用户信息: | ||
|
||
```bash | ||
[user] | ||
name="Your Name" | ||
email="[email protected]" | ||
``` | ||
|
||
也可以在项目级别通过执行如下命令实现等效配置: | ||
|
||
```bash | ||
git config user.name "Your Name" | ||
git config user.email "[email protected]" | ||
``` |