how to use git in terminal

C++
git config --global user.name "your_username"
git config --global user.email "[email protected]"
"C:\Program Files\Git\bin\sh.exe" --logincreate new repo-git
echo "# SqlMentor" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin
https://github.com/asd/SqlMentor.git git push -u origin
master
push an existing repo-git
git remote add originhttps://github.com/asd/SqlMentor.git
git push -u origin master
Default editor
Source

Also in C++: