- Create a new GitHub repository
- Open the local project it in the terminal
git remote add test <URL_TO_GITHUB>
git push test <branch_name>
- Then stage a commit, push it with
git push test <branch_name>
, but donβt push anything toorigin
- Sometimes force push is needed:
git push test <branch_name> --force