git init
git add .
git commit -m "Initial Commit"
git branch -M main
git remote add origin https://github.com/USERNAME/REPOSITORY_NAME.git
git push -u origin maingit remote -vgit remote remove origingit remote add origin https://github.com/NEW_USERNAME/REPO_NAME.gitgit branch -M main
git push -u origin mainIf your branch is named master, rename it to main:
git branch -M main
git push -u origin maingit clone https://github.com/USERNAME/REPOSITORY_NAME.git
cd REPOSITORY_NAMEgit add .
git commit -m "Update project"
git push origin maingit status
git pull origin main