- Create a new and empty branch
$ git checkout --orphan "rye/testmodel"
- Delete all files to make it empty
$ git rm -rf .
- Then add and commit files into the branch
- Finally, push it into remote repository
To push the current branch and set the remote as upstream, use
$ git push --set-upstream origin rye/testmodel
No comments :
Post a Comment