I do have a question. I have an project built in React. One on my friend want to build it for iOS. He's working from a Macos. I already have the repository created on my github account and only main branch. How can we do to create a new branch for his iOS app to work on, independently from my react app and be able to push his work on the same repository from my account?
We tried to create a new branch on his OS and push it but it doesn't work. An error (permission denied) occurs. This is what we did:
git clone repo-url
git checkout -b iOS
rm -rf *
git add .
git commit -m "message"
git push -u origin iOS
I mention that he's logged with the account that I already invited as a contribuitor. After all those commands the git push command return an 403 error (permission denied).
I think you should use one branch with two different folders in the same repo. One folder for the React app, one for iOS.