sidnt / proden

prog ram de sign n otes
0 stars 0 forks source link

git worktree ? #25

Open sidnt opened 4 years ago

sidnt commented 4 years ago

so git commits are basically snapshots of repositories. think of a repository like a big picture that's being built progressively with each passing commit.

a snapshot/commit might include only a part of the repo. it doesn't have to include all of the repo.

a branch is basically a pointer to a commit. a commit is tracking some part of the repo. changes to that part of the repo, means that the part being tracked in that branch, is evolving with each passing commit.

A git repository can support multiple working trees, allowing us to check out more than one branch at a time.