Quickguide Git 2023

Install https://git-scm.com/download/linux https://docs.github.com/en/get-started/quickstart/set-up-git sudo add-apt-repository ppa:git-core/ppa sudo apt update sudo apt install git git --version Configure Configure Git git config --global user.name "Xyz" git config --global user.email "[email protected]" # Enable main as the default branch git config --global init.defaultBranch main # Enable colours git config --global color.ui auto # Check the configuration git config --list Generate SSH key https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent https://docs.github.com/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding https://docs.gitlab.com/ee/user/ssh.html#generate-an-ssh-key-pair # Generate SSH key ssh-keygen -t ed25519 -C "xxxxx@xxxx....

March 21, 2023 · 2 min · Al3xis