Understanding Git and Github
/ 1 min read
Table of Contents
Setting up git on linux.
I am assuming you have ubuntu or any debian based distro installed on your PC.
Otherwise, you’ll probably need to install git
using respective package-manager.
Install git
sudo apt updatesudo apt upgrade
sudo add-apt-repository ppa:git-core/ppasudo apt updatesudo apt install git
git --version
Setup
git config --global user.name "Your Name"
git config --global init.defaultBranch main
git config --get user.namegit config --get user.email
ls ~/.ssh/id_ed25519.pub
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub