====== Git - Basic/Initial Setup ======
==== 1. Install Git ====
Most Linux distributions include Git in their package managers. Here's how to install it on common distributions:
**Ubuntu/Debian:**
sudo apt update && sudo apt install git -y
==== 2. Verify Installation ====
Check if Git is installed correctly:
git --version
This should output the installed Git version.
==== 3. Configure Git ====
Set your username and email:
git config --global user.name "Your Name"
git config --global user.email "your_email@example.com"
Replace `Your Name` and `your_email@example.com` with your actual information.
==== 4. (Optional) Configure Text Editor ====
Specify your preferred text editor for Git:
git config --global core.editor "your_editor"
Replace `your_editor` with your editor's command (e.g., `nano`, `vim`, `emacs`).