#git bot interface
History of !orphan
- To create an orphaned branch(unrelated to existing history): `git checkout --orphan newbranchname`. This will leave your index/worktree as-is(use `rm .git/index; git clean -dfx` to delete EVERYTHING). If you get 'error: unknown option `orphan`' see !orphan_old. For an empty/null commit see !orphan_null.
By EugeneKay at 2012-05-06 22:52:53
- To create an orphaned branch(unrelated to existing history): `git checkout --orphan newbranchname`. This will leave your index/worktree as-is - use `rm .git/index; git clean -dfx` to delete EVERYTHING). If you get 'error: unknown option `orphan`' see !orphan_old. For an empty/null commit see !orphan_null.
By EugeneKay at 2012-05-06 22:45:29
- To create an orphaned branch(unrelated to existing history): `git checkout --orphan orpanbrname` Note your index will be dirty (`rm .git/index; git clean -dfx` will clean/delete EVERYTHING). To create an orphan branch with the null/empty commit on it, run `git checkout -b emptybranch $(echo "empty" | git commit-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904)`
By SethRobertson at 2012-04-25 15:02:20
- To create an orphaned branch(unrelated to existing history): git symbolic-ref HEAD refs/heads/orphan; rm .git/index; git clean -fdx; touch foo; git add foo; git commit -m 'Initial commit on branch orphan'
By EugeneKay at 2012-01-17 04:45:32
- To create an orphaned branch(unrelated to existing history): git symbolic-ref HEAD refs/heads/orphan; rm .git/index; git clean -fdx, touch foo, git add foo; git commit -m 'Initial commit on branch orphan'
By EugeneKay at 2012-01-17 04:43:44
- To create an orphan commit(parentless), do: git symbolic-ref HEAD refs/heads/newbranch; rm .git/index; git clean -fdx, touch foo, git add fooa; git commit -m 'Orhphan Commit'
By EugeneKay at 2012-01-17 04:34:52