[Oberon] Re (2): Re (2): Git usage for A2.

peter at easthope.ca peter at easthope.ca
Thu Jun 29 23:28:01 CEST 2023

From:	Michael Schierl <schierlm at gmx.de>
Date:	Sun, 25 Jun 2023 18:38:45 +0200
> > Now you might think "Why did I respond to Peter's first question?"
> I don't get this. I respond to a question when I think I can answer it,
> not related whether it is their "first" or not "first" question.

Thanks.  Some mailing list readers can be annoyed when an answer to 
a question brings several more questions.

> I assume you mean after the empty directory has been filled with 
> both the work tree and the local repository?


Also found https://en.wikipedia.org .  The 2nd paragraph mentions 
"... every Git directory on every computer is a full-fledged repository ..."

Here, the diagram helps to understand the relationships.

> > HYPOTHESIS: a file in the local repository is never edited directly.
> > A file in the work tree can be edited directly.

Possibly more accurate.
A file in the local branch is rarely edited directly.
A file in "work files" can be edited directly.

> [Staging area] Surely mentioned at lots of places :-) 

Near the lower right corner of the diagram and other places. 

> The staging area is part of your local repository ...
> ...
> Git solves this using the staging area. 
> ...

> When doing a commit, you have to decide whether you want to commit 
> from the staging area (if you give no flags) or from the work tree (if 
> you give the "-a" flag).

> So in your example using the staging area you would do
> ...

> Without using the staging area, you would do:
> ...

My instructions for using A2 from a repository in a *nix system are here.

Corrections and suggestions from anyone welcome.

Thanks!               ,,, P.L.
mobile: +1 778 951 5147
VoIP:   +1 604 670 0140

More information about the Oberon mailing list