# Install git and gitg repo viewer
sudo apt-get install git git-doc gitg
# Set name and email in gitconfig
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
# Configure default git text editor
git config --global core.editor gvim
# Configure status colors
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.status.changed yellow
git config --global color.status.added green
git config --global color.status.untracked red
# Verify git settings
git config --list
# Generate SSH keys (provide a good passphrase when asked)
ssh-keygen -t rsa -C "johndoe@example.com"
ไม่มีความคิดเห็น:
แสดงความคิดเห็น