Create a new repository on command Line
- git init
- git add fileName
example:git add README.md
- git commit -m "first commit"
- git branch -M main
- git remote add origin (your git url)
- git push -u origin main
- git status
- git remote -v (crosscheck your in gitrepository or not)
Or push an existing repository from the command line
- git remote add origin your-git-url
- git branch -M main
- git push -u origin main
If you want to work on someone repository you can follow these steps
In cmd go below commands
- git clone url
- git remote remove origin
- git add url
or
- fork