skip to content
Keshav Mohta

Blank Branch via git

/ 1 min read

Blank Branch in github

sometime we need to create an empty branch to test or work completely different environment, such as one repo has react and another repo have angular code

either we delete everything and do install but here is how we can do

Terminal window
> git checkout --orphan <branch-name>
> git commit --allow-empty -m "Blank Branch"
> git push -u origin <branch-name>

replace <branch-name> with your branch name

Thanks.