Note on git commands to use branches as independent light-weight repositories within a real repository.
Assume the remote repo. already exists, e.g. https://example.com/user/a_repo.git
.
Create a new empty repository and do things there:
git init subrepo
cd subrepo
date >README.md
git add README.md
git commit -am'one file'