Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| handy_git_commands [2023/11/15 17:50] – mgupton | handy_git_commands [2024/12/04 14:57] (current) – mgupton | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| === concise one-line log === | === concise one-line log === | ||
| <code bash> | <code bash> | ||
| - | git log --pretty=format:" | + | git log --date=iso |
| </ | </ | ||
| + | ====== 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> | ||
| + | </ | ||