Skip to content

Instantly share code, notes, and snippets.

@chenxinlong
Last active December 2, 2022 02:44
Show Gist options
  • Select an option

  • Save chenxinlong/904e9f9a84567b90034e5651ceeb3483 to your computer and use it in GitHub Desktop.

Select an option

Save chenxinlong/904e9f9a84567b90034e5651ceeb3483 to your computer and use it in GitHub Desktop.
git
@chenxinlong
Copy link
Author

chenxinlong commented Jul 12, 2021

git config

@chenxinlong
Copy link
Author

# ssh
# ssh connection keepalive
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=60 root@1.1.1.1


# gpg2
# 国内可用 keyserver
# 建议 recv 和 send key 到 sks-keyserver pool : https://sks-keyservers.net/status/
# distributing keys : https://www.gnupg.org/gph/en/manual/x457.html
keyserver.ubuntu.com
pgp.mit.edu
...

@chenxinlong
Copy link
Author

gitk

安装

brew install git-gui

@chenxinlong
Copy link
Author

reset

把已经 commit 的代码回退到 uncommited

git reset --soft HEAD^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment