create repository git from terminal code example
Example 1: git bash new repository
git init
git add -A
git commit -m 'Added my project'
git remote add origin git@github.com:sammy/my-new-project.git
git push -u -f origin master
git clone url
git fetch
git push (to check)
Example 2: upload new repo to git
echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master
Example 3: init step way to create repository git
git configuration