git setup code example
Example 1: git config list
git config --global --list
Example 2: Macbook git user config global
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Example 3: 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 4: list config git
git config --list
Example 5: git user config
$ git config --local user.name "John Doe"
$ git config --local user.email [email protected]
Example 6: 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