From 44f643b1186be74f012915aa321739a5af7b2928 Mon Sep 17 00:00:00 2001 From: yan Date: Sat, 5 Nov 2022 14:57:18 -0700 Subject: [PATCH] Add alternative timeline views to readme/makefile --- Makefile | 8 +++++++- README.md | 13 ++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1557eb0..3878310 100644 --- a/Makefile +++ b/Makefile @@ -15,5 +15,11 @@ refresh: repost: git cherry-pick $(p) -timeline: +timeline-graph: git log --graph --all --decorate --oneline + +timeline: + git rev-list --all --remotes --pretty | less + +timeline-short: + git log --format="format:%Cred%cd %Cblue%h %Cgreen%cn%Creset: %s" --all --date=iso-local diff --git a/README.md b/README.md index 4e5f1f1..102ba99 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ git remote add git fetch ``` -* to follow everybody: +* to follow everybody using GitHub: `./follow-everybody.bash` @@ -55,12 +55,19 @@ git cherry-pick git fetch --all && git rev-list --all --remotes --pretty | less ``` -* to view your timeline in a cool way: +* some alternative ways to view your timeline (use `git show ` to + show the full "tweet"): ``` +git log --format="format:%Cred%cd %Cblue%h %Cgreen%cn%Creset: %s" --all --date=iso-local git log --graph --all --decorate --oneline ``` -* to get verified: +* to get verified (GitHub-only): 1. [follow github's own verification instructions and make your commit email match your GPG key email](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification) 2. `git commit -S -m "your post" --allow-empty` from now on + +* to encrypt a message: + +see `encrypt using the public key of a github user` in https://sshenc.sh/ or +use your favorite key distribution mechanism to get their public key.