Alright let me do some reading then return with some more questions. :-)

Christopher

On 8/16/2019 9:16 AM, Philip Oakley wrote:
Branches are not folders.

What you are looking at (inside the .git folder) is the hidden, behind the curtain, workings of Git that you should not touch.

Use the Git commands to find out what Git knows. Time to read the Git scm book https://git-scm.com/book/en/v2 (other books/videos are available..).

the magic file HEAD will contain, usually a line that says it (HEAD, the current lead bit of work that Git remembers) is a 'ref' or reference to one of the 'heads' which will then be the name of your branches (e.g. master). Alternatively it will be a specific SHA1 40 char hex value (as will the refs/heads/<branch> thingies).

The SHA1 value (in the various heads) is the object name (and equivalently the hash of the object), almost always for a commit object. That SHA1 hash lets Git go to its objects store (.git/objects) and look it up. Each of the commit objects is a one way linked list, without any recursion or looping (what is called the DAG - directed acyclic graph), so you can see the previous commit, and then its previous commit etc. The key point here is that Git takes snapshots. It does _not _record 'diffs'.

Once git gets a few objects created it 'packs' them together with a fancy 'Linus' Law' compression, so that all the history fits into a rather small (in the scheme of things) pack file (mentioned in case all you see is the pack file)

Hope that little intro gets you started.

Philip

On Thursday, August 15, 2019 at 2:51:45 AM UTC+1, CrestChristopher wrote:

    My repository got created but rather then my folders on my local
    system becoming the main branches, essentially allowing me to be
    in the directory with the file that I want to push, and it will
    get pushed to the identical folder repository. Instead in the same
    path, my repository got created long with these folders, not
    identical ?

    |.git\config .git\description .git\HEAD .git\hooks .git\info
    .git\objects .git\refs |

    ​

    Christopher

--
You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com <mailto:git-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/ad2bc1ab-6ae1-4b67-9522-c36fd7f72fbc%40googlegroups.com <https://groups.google.com/d/msgid/git-users/ad2bc1ab-6ae1-4b67-9522-c36fd7f72fbc%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/b479fd47-688c-2773-6e7d-4286b64caff9%40gmail.com.

Reply via email to