create new branch without commit history git code example Example: git push a new version without history git clone --depth <depth> -b <branch> <repo_url>