make a repository in terminal code example
Example 1: create new repository on the command line
git init
git add README.MD
git commit -m "commit message"
git remote add origin git url_of_github_repo
git push origin master
Example 2: create a new repository on the command line
echo "# Assignment-4" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/MinhajSiam/Assignment-4.git
git push -u origin main