Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add follow up your last commit #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Backup untracked files.](#backup-untracked-files)
* [List all git aliases](#list-all-git-aliases)
* [Show git status short](#show-git-status-short)
* [Follow up your last commit](#follow-up-your-last-commit)

<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
Expand Down Expand Up @@ -1105,5 +1106,10 @@ git config -l | grep alias | cut -d '.' -f 2
git status --short --branch
```

## Follow up your last commit
```sh
git log --oneline --max-count=1 --date=short --pretty="%C(auto)%h %C(auto)%ad %C(auto)%C(auto)|%d %s %C(cyan)[%cn]" --author "$(git config --global user.email)"
```

<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->
6 changes: 4 additions & 2 deletions tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,7 @@
},{
"title": "Show git status short",
"tip": "git status --short --branch"
}
]
},{
"title": "Follow up your last commit",
"tip": "git log --oneline --max-count=1 --date=short --pretty=\"%C(auto)%h %C(auto)%ad %C(auto)%C(auto)|%d %s %C(cyan)[%cn]\" --author \"$(git config --global user.email)\""
}]