Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
handy_git_commands [2023/11/15 18:00] – [See Changes] mgupton | handy_git_commands [2024/12/04 14:57] (current) – mgupton | ||
---|---|---|---|
Line 16: | Line 16: | ||
</ | </ | ||
+ | ====== Orphaned/ | ||
+ | * Create an orphaned branch | ||
+ | * Delete all the files in the new branch to start fresh | ||
+ | * I think you have to at least do a commit to the branch before it can be pushed to a remote | ||
+ | < | ||
+ | git checkout --orphan < | ||
+ | git rm -rf . | ||
+ | git commit --allow-empty -m " | ||
+ | git push -u origin <branch name> | ||
+ | </ | ||