Git Installation
Download and install the latest version of Git ---> https://git-scm.com/downloads
Setting your Git username for every repository on your computer
Open Terminal.
Set a Git username:
git config --global user.name "YOUR USERNAME"
Confirm that you have set the Git username correctly:
git config --global user.name
Setting your email address for every repository on your computer
Open Terminal.
Set an email address in Git
git config --global user.email "YOUR_EMAIL"
Confirm that you have set the email address correctly in Git:
git config --global user.email
Open terminal
Check your version
git --version
List all settings
git config --list
Set Default Values
git config --global init.defaultBranch main
##Start a project
mkdir myproject
cd myproject
ls -a
git init
ls -a
vi index.html
Copy paste the code from index.html in this repository to the newly created index.html
Search the web how you can save and exit vi
ls
git status
git add index.html
git status
git commit -m "I commit, Do you Commit?"
git status