xxxxxxxxxx
git push --force origin main //force pushing to remote github repo
xxxxxxxxxx
# Push newly created local branch to remote
git push --set-upstream origin <branch name>
xxxxxxxxxx
# to create a new local branch
git branch <branch-name>
# to push it to the remote repository
git push -u origin <branch-name>