Skip to content
Xuwei Li edited this page Jan 30, 2022 · 13 revisions

https://github.com/django/.github

macOS Shortcuts

  1. Tab indent in Editor Control + Option + Tab

Hack

1. List Collaborators

https://stackoverflow.com/questions/37495745/how-can-i-get-the-number-of-collaborators-in-someone-elses-github-repository

https://github.com/<owner>/<repo>/issues/show_menu_content?partial=issues/filters/authors_content

Sign Commit

SSH

~/.ssh/config

Host github.com
	Port 22
		User git
			IdentityFile ~/.ssh/<Email>/<Private Key>
			IdentitiesOnly yes
			TCPKeepAlive yes

../<Repository>/.git/config

[core]
	sshCommand = ssh -i ~/.ssh/<Email>/<Private Key>
[user]
	name = <Name>
	email = <Email>
	signiingkey = <GPG Secret Key ID>
[commit]
	gpgSign = true
[tag]
	gpgSign = true
% gpg -K

GPG

% gpg --import <Private Key>
% brew install gpg-agent pinentry-mac
% echo "use-agent" > ~/.gnupg/gpg.conf

% cat > ~/.gnupg/gpg-agent.conf << EOF
use-standard-socket
enable-ssh-support
default-cache-ttl 600
max-cache-ttl 7200
pinentry-program /usr/local/bin/pinentry-mac
EOF

% killall gpg-agent

TouchID

% sudo chown -R "$USER":admin /usr/local/Homebrew/Library/Taps
% brew tap jorgelbg/tap
% brew install pinentry-touchid

pinentry-program /usr/local/bin/pinentry-touchid

Inspire

Clone this wiki locally