Intellij and Git installaiton using Homebrew 👉 check this video : • What is Homebrew? How to use it?
Homebrew (Recommended): Best for developers who want easy updates.
If you have Homebrew installed, run: brew install git.
To update later, just run brew upgrade git.
To check Git version
git --version
After installation, you must set your username and email. This information is attached to every "commit" (save point) you make.
Set your name:git config --global user.name "Your Name"
Set your email:git config --global user.email "[email protected]"
Verify settings:Run git config --list to see your saved configuration.
Generate a key: ssh-keygen -t rsa -b 4096 -C "[email protected]"
Linking local repo commands:
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin [PASTE_YOUR_GITHUB_URL_HERE]
git push -u origin main