to setup git code example
Example 1: git setup
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
$ git config --global push.default matching
$ git config --global alias.co checkout
$ git init
Example 2: 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