git

PPG007 ... 2022-2-26 Less than 1 minute

# git

# install git
sudo apt install git-all
# config git
git config --global user.name "<your name>"
git config --global user.email "<your email>"
git config --global core.editor "vim"
# generate ssh key
ssh-keygen -t ed25519 -C "<your email>"
# get the ssh key, then copy ssh key to github
cat .ssh/id_ed25519.pub
# add public key to a server
ssh-copy-id -i ${path to your public key} ${username}@${host}
1
2
3
4
5
6
7
8
9
10
11
12
Last update: March 16, 2023 02:52
Contributors: Koston Zhuang , ppg007