Step 1: Create a folder and run cmd -> git init
Step 2: Check status if any untrackable file you have added
Step 3: Add and commit in your own local pc/laptops run cmd ->
git add . for all files to make status staged
run cmd -> git commit -m "added files".
Step 4: Again check for git status.
Step 6: Run command -> git remote add origin <-- https link of remote repo -->
Step 7: Run command -> git remove -v (to verify remote)
Step 8: Run command -> check for branch or want to rename branch
cmd -> git branch and git branch -M newmain
Step 9: Final push into origin or remote repo with cmd -> git push origin main
cmd -> git push -u origin main (we can use this cmd to set upstream if we are working on a project for long time) next time run cmd only -> git push