forked from 521xueweihan/git-tips
-
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
50e52a7
commit fcd57df
Showing
1 changed file
with
9 additions
and
2 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 |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
## 所有人看过来 | ||
1. Fork于[tips](https://github.com/git-tips/tips)项目 | ||
|
||
2. **一定要先测试命令的效果后,再用于工作环境中,以防造成不能弥补的后果!** | ||
2. **一定要先测试命令的效果后**,再用于工作环境中,以防造成不能弥补的后果!**到时候别拿着砍刀来找我** | ||
|
||
3. 所有的命令都在`git version 2.7.4 (Apple Git-66)`下测试通过(安全可食用😊) | ||
3. 所有的命令都在`git version 2.7.4 (Apple Git-66)`下测试通过 | ||
|
||
--- | ||
|
||
|
@@ -131,6 +131,13 @@ git commit --amend | |
git log | ||
``` | ||
|
||
## 显示本地执行过git命令 | ||
就像shell的history一样 | ||
|
||
``` | ||
git reflog | ||
``` | ||
|
||
## 修改作者名 | ||
```sh | ||
git commit --amend --author='Author Name <[email protected]>' | ||
|