git push existing code to new branch code example
Example 1: push project to new branch git
git push -u origin branchName
Example 2: git push in a new branch
git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
git push -u origin branchName
git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>