I have a two branches in my projects:
- Main
- Developper
I want to delete all the content (files and directories) of the Developper branch without deleting the branch from the repo.
I have a two branches in my projects:
I want to delete all the content (files and directories) of the Developper branch without deleting the branch from the repo.
You can checkout onto the developper branch and manually delete all files and directories. Then commit these changes and push them. This will tell git to delete all files just from this branch.