For initial Commit
git init
git add .
git commit -m"commit message"
git branch -M main #branch name
git push origin main #branch name
For Next Commit
git add .
git commit -m"commit message"
git push origin main #branch name
To update with base branch
git pull origin main #base branch name
To clone an existing Repo
git clone https://repository-link.git #repository link
To create a new branch
git checkout -b new-branch #branch name