how to setup git code example

Example 1: list config git

git config --list

Example 2: how to set up git for github

$ git config --global user.name "Your name here"
$ git config --global user.email "[email protected]"

Example 3: how to set up git user

$ git config --global user.name "Mona Lisa"

Example 4: git setup

echo "# your repo name" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin your-repo-link.git
git push -u origin main