Thread (13 messages) flat view 13 messages, 4 authors, 2016-08-11

Re: Bootstrapping into git, commit gripes at me

From: Marc Singer <hidden>
Date: 2016-06-15 22:42:02

On Mon, Jul 11, 2005 at 09:34:33PM -0700, Linus Torvalds wrote:

On Mon, 11 Jul 2005, Linus Torvalds wrote:
quoted
    Of course, if you want to create a new branch "my-branch" and _not_
    check it out, you could have done so with just

        git-rev-parse v2.6.12^0 > .git/refs/heads/my-branch

    which I think I will codify as "git branch".
And now we have that "git branch". It's a trivial one-liner, except with
the setup and error checking it's actually more like six lines.
Does it make sense to think about this branch as an flow of commits?
Or is it just a starting point for a line of development?  If I make a
branch, check it out, commit changes to it, and then clobber the
working directory, can I later resume that branch of development
without creating a new branch?  Do I need to set a tag to mark the
last commit on that branch?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help