This repository provides a simple walkthrough of Git — from installation to pushing your first repository to GitHub.
- Download Git from git-scm.com.
- Run the installer with default options.
- Open Git Bash to verify:
git --version
brew install git
sudo apt update
sudo apt install git
Set your Git identity:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
mkdir my-project
cd my-project
git init
git add .
git commit -m "Initial commit"
- Create a new repo on GitHub (without a README).
- Add remote and push:
git remote add origin https://github.com/your-username/your-repo.git
git branch -M main
git push -u origin main
Your code is now live on GitHub!
#### 📄 `.gitignore`
```gitignore
# Ignore node_modules, compiled files, OS-generated files, etc.
node_modules/
*.log
.DS_Store
*.pyc
.env
```