All pastes #525783 Raw Edit

Someone

public text v1 · immutable
#525783 ·published 2007-05-31 14:43 UTC
rendered paste body
[PlayAreas]$ mkdir lc
[PlayAreas]$ cd lc
[lc]$ git init  
Initialized empty Git repository in .git/

[lc (master)]$ echo a >a && git add a && git commit -m a
Created initial commit ee05aa9: a
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 a

[lc (master)]$ git checkout -b here 
Switched to a new branch "here"
[lc (here)]$ echo here >here && git add here && git commit -m here
Created commit ce7e152: here
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 here

[lc (here)]$ git co -b new master
Switched to a new branch "new"
[lc (new)]$ echo new >new && git add new && git commit -m new
Created commit d26e306: new
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 new

[lc (new)]$ git checkout master
Switched to branch "master"
[lc (master)]$ new=`git rev-parse new`; echo $new
d26e3064db07777f6c32d9f6da6819a5fd31cec3
[lc (master)]$ git branch -D new
Deleted branch new.

[lc (master)]$ git log $new --not --all
commit d26e3064db07777f6c32d9f6da6819a5fd31cec3
Author: Shawn O. Pearce <spearce@spearce.org>
Date:   Thu May 31 10:39:02 2007 -0400

    new