open git in terminal code example

Example 1: how to login to git from terminal

git config --global user.name "your_username"

Example 2: how to use git in terminal

create 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

Example 3: gitlab push existing project commandlie

git config --global user.name "Roka Paudel,Sarmila S."