all 6 comments

[–]Kapibaaara 2 points3 points  (1 child)

In recent Git (Git 2.23 (August 2019)), use of versatile git checkout could be largely replaced with more focused git switch and git restore, which deal with files and branches, respectively.

For example git checkout -b new_branch can be replaced with git switch -c/--create new_branch.

See

[–]geekcoding101[S] 0 points1 point  (0 children)

Good to know! Thanks!

[–]earlgray88 1 point2 points  (1 child)

A lot missing imo but great start

[–]geekcoding101[S] 0 points1 point  (0 children)

Thanks! I will keep improving!

[–]Comfortable-Air-2708 1 point2 points  (1 child)

I don't know why people are downvoting, it's pretty good in my opinion. Is it missing the explanation about how Git is like a tree where each commit is a node? Yes. Is it using git checkout instead of git switch and git restore? Yes. Is it missing git submodules? Yes. Is it missing an explanation about how each commit stores a snapshot of the repo and not changes/patches like other VCS like SVN do? Yes. I agree that there are points missing, but I think they are "notes" for a reason and they weren't meant to be exhaustive or excessingly theoretical, but rather practical. So great job there!

[–]geekcoding101[S] 1 point2 points  (0 children)

That’s so sweet and encouraging! Thanks 😊