SnippetsUnixgit - Orphan branchgit - Orphan branch Create a new branch without history Examples git switch --orphan <new-branch> # or git checkout --orphan <new-branch> Learn more git switch (opens in a new tab) git checkout (opens in a new tab) Create Nested DirectoriesOutput Redirection