Git Tutorial - Add and Edit Commits (Hunks)

preview_player
Показать описание
Editing Git Patches is a real power move. This lets the world and your team know that you have the power of the Git. The best part is that everyone can do it. Here is a video to show you how.

Quick note about naming your app:

org-name/project-name is a structure proposed by clj-new. By "org-name" I mean your companies name and "project-name" would be your app's name. See the Create Reagent App repo for a little more information on how these names are used.

⏰ Timestamps:

(00:00) Intro
(00:27) Clean Commit Histories
(01:19) Overview of video content
(01:34) 1. Review of Codebase
(02:04) 2. Review of Code Changes
(02:33) 3. Breakdown of Git Edit Examples
(03:24) 4. How to list Git Hunks
(03:40) 5. Quick review of Git Interactive mode
(04:24) 6. Anatomy of a Git Hunk
(05:04) 7. Example of Git Edit Gotcha!
(06:05) 8. Example Edit 1 - context + additions + context
(08:38) 9. Example Edit 2 - context + deletion & additions + context
(11:39) 10. Example Edit 3 - context + deletion & additions + context

📚Additional Resources

❤️ Follow Me

Рекомендации по теме
Комментарии
Автор

I rewatch this video every time I forget how to edit hunks. Thanks a lot!

tyrisnolam
Автор

Great explanations, thank you so much.

newfc
Автор

I appreciate your detailed explanation, but I cannon see your cursor when you are indicating line 37 6:50

BooleanOperator
Автор

Great tutorial!, do you use any plugin for git diff styling?

devstefancho
Автор

It would be more useful if you can zoom in to your screen, the color of the cursor doesn't see clearly, so I could appreciate better what are you doing.

MiKo-iztt
Автор

Thanks for posting. How did you get your git diff to look that way? I assume you are using an alias of some sort, as normally git diffs have a much different look.

privatename
Автор

Nice content but the font is way too small. I had to strain my sight to see what you are doing . Thanks for the video though

kanumikechibundu
Автор

Man, WTF :D

You don't have to change the "hunk header" to edit the commit, git developers aren't that stupid.

Just use the syntax git uses. Don't delete context lines and everything will be fine.
(In your "example of apply path error" you deleted one context line: with curly brace)

Дмитрий-тлц
welcome to shbcf.ru