Tree Roles | |
---|---|
The HEAD | last commit snapshot, next parent |
The Index | proposed next commit snapshot |
The Working Directory | sandbox |
The HEAD last commit snapshot, next parent
The HEAD in Git is the pointer to the current branch reference, which is in turn a pointer to the last commit you made or the last commit that was checked out into your working directory. That also means it will be the parent of the next commit you do. It's generally simplest to think of it as HEAD is the snapshot of your last commit.
Read full article from Git - Reset Demystified
No comments:
Post a Comment