Skip to main content

Git

Courses​

Setup​

Linux​

sudo apt-get update
sudo apt-get install git

Windows​

Config​

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --list

# if default branch name is not `main`
# use main as default branch name
git config --global init.defaultBranch main

GitHub Course​

Overview​