See files difference between current and main branch

git diff HEAD origin/main [--name-only]

git diff main <branch-name>

Push to sub-branch

git add .
git commit -a -m "message"
git pull origin main
git push origin <branch-name>

Check remote URL

git remote -v

Add remote URL

git remote add origin <https://github.com/USERNAME/NEW-REPOSITORY-NAME.git>

Update remote URL

git remote set-url origin <https://github.com/USERNAME/NEW-REPOSITORY-NAME.git>