Write git commit messages like a PRO with Conventional Commits

  Рет қаралды 104,988

Justin Brooks

Justin Brooks

Күн бұрын

Good commit messages are important for maintaining any long-term project. If you follow this guide laid out in this video you can use conventional commits to automatically generate changelog files. It is not only beneficial to the people collaborating on the project but also to yourself. It will help you keep track of all of your commits and know exactly what changes were made during each commit.
⚡ RESOURCES ⚡
Conventional Commits - www.conventionalcommits.org/
Github Repo - github.com/jsbroks/auto-chang...
⭐ TIMESTAMPS ⭐
0:00 - Introduction
0:40 - Conventional Commits
1:19 - 5 parts to a commit message
3:01 - How to auto-generate changelogs
3:56 - Conclusion
#git #commit #messages
------------------------------
Levity by Johny Grimes / johny-grimes
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/2sUZMCR
Music promoted by Audio Library • Levity - Johny Grimes ...
------------------------------

Пікірлер: 35
@harunjonuzi
@harunjonuzi Жыл бұрын
I swear i was looking at some repos in github and I really loved and was curious to know what kind of structure they were following, this video is a gem explaining everything in simple terms and examples, very well done friend!
@rabeehta222
@rabeehta222 3 жыл бұрын
my commit messages are always trash, this was very informative.
@codephil
@codephil Жыл бұрын
Best video I have seen on this!! Would love to get a follow up with a more complex example, and maybe some more guidance on documenting things in general and using issues in github.
@harshkhare7084
@harshkhare7084 Жыл бұрын
Came for a coin, and found a goldmine. I was just searching how to write a SIMPLE message while committing a code. Ended up learning about Conventional Commits 1.0.0 and SemVer and made my repo more professional. My project evaluator was IMPRESSED. A big thanks to you, Bro. Keep up the good work 👍🏻
@editoraholic
@editoraholic 4 ай бұрын
Hi Bhai,
@tonimaunde
@tonimaunde 3 жыл бұрын
Thank you for the video.
@danieljimenezG
@danieljimenezG 3 жыл бұрын
I have been avoiding to write good commit messages, because we are just 2 persons. This video motivates me to do it, thank you!
@CodingWithJustin
@CodingWithJustin 3 жыл бұрын
I'm so glad! It really helps my workflow
@jondoe79
@jondoe79 3 жыл бұрын
This channel content is precise and conscience 👍 keep it up bro.
@MavMoZu
@MavMoZu Ай бұрын
TOP was here hehe
@jsnam8139
@jsnam8139 2 жыл бұрын
My commit message was like "sadfjhkasfk" lol
@RussellTeapot
@RussellTeapot 2 жыл бұрын
Oh Lord ahahahahah
@DraxTheDestroyer
@DraxTheDestroyer 25 күн бұрын
If one day your boss fires you, the reason on the official document will be "sadfjhkasfk" 🤣
@jsnam8139
@jsnam8139 25 күн бұрын
@@DraxTheDestroyer 😂😂😂
@shis10
@shis10 Жыл бұрын
Amazing video
@SenthuranElangovan
@SenthuranElangovan 3 жыл бұрын
Thanks man
@magiccubing2587
@magiccubing2587 3 жыл бұрын
Najs👍👍
@TechReagan
@TechReagan 3 жыл бұрын
This is awesome, love the way you explain things. Now I'm going to be using these conventions. You are the best. What's your thought on using git client?
@CodingWithJustin
@CodingWithJustin 3 жыл бұрын
I love them, I use GitKraken
@masoudhesami1382
@masoudhesami1382 Жыл бұрын
sooooooooo usefull
@zafimamyjaryavitsara5312
@zafimamyjaryavitsara5312 3 жыл бұрын
Thank you so much ! I have an internship now and thisis very helpfull !!!
@boomerangfish3558
@boomerangfish3558 2 жыл бұрын
holy shit, congrats dude!
@phill13able
@phill13able Жыл бұрын
Me: "Work in progress" "Work in progress" "Work in progress" "Work in progress" "Work in progress" ...
@chhumchanleak7642
@chhumchanleak7642 2 ай бұрын
great
@SenthuranElangovan
@SenthuranElangovan 3 жыл бұрын
Please Make simple tut series for Vue3 with Typescript and composite API
@ricardocastillo9712
@ricardocastillo9712 3 жыл бұрын
How would you create a changelog for python or java?
@riiya7928
@riiya7928 Жыл бұрын
What's the commit name for fixing styling on frontend?
@mertgenc9890
@mertgenc9890 Жыл бұрын
my commit message was "changes" lmao
@shubhamjain54519
@shubhamjain54519 2 жыл бұрын
2:04 why should we use imperative for the description?
@pontusdevelopment9284
@pontusdevelopment9284 Жыл бұрын
Not the creator of the video, but I'll reply just in case someone sees this and wants to know as well. It is usually thought to be a good idea to write in imperative form because you are implicitly telling the machine what to do when the commit is added to your repo. So let's pretend that you are building a website, and the commits are a string of messages going directly to the machine that is hosting that website. "commit 1: added a button that is blue" "commit 2: translated header text from English to Latin" The computer, in this very contrived example, wouldn't be able to make sense of that list as opposed to: "commit 1: add a blue button in card component" "commit 2: translate header text to English" Now, this is the primary reason most blogs etc use for their examples, that the commit should be a _command_ so that you can easily read what exactly each commit does to the codebase once it is applied - and this is a legit reason to use it for many. However, two other good reasons that people have stated are; 1: It forces the developer to write a better, more specific commit message because it needs to be distilled into its purest form in order to be a command, and 2: It gives you a simple way to notice if you might have done _too much_ work for it to be one commit, and maybe it should be split into several, smaller? If the commands become something like "Add blue button, remove border on header logo, reduce complexity of state by colocating with related component, make the world a better place" you might realise how it's time to split that one into several, especially the last commit :-) Splitting a large pull request into many smaller ones, or at least into many smaller commits is a really good idea if you want to have an easy time with code reviews in your project. It makes it _way_ easier to read and understand each other's code that way. At the end of the day, there is no Council of Coders™ that will banish you from the land of binary trees and search algorithms just because you use past tense rather than imperative when writing commit messages. So long as the project you are in have an agreed upon way of writing commit messages so that it makes sense for the project and is easy to track the history if something goes awry, that's all that matters. It _is_ worth pointing out though, that Git themselves prefer to write commit messages using imperative form. Do with that what you will :-)
@Kevinschart
@Kevinschart Жыл бұрын
would've been nice to see you actually do this in the terminal instead of the slid show
@captainobvious7898
@captainobvious7898 Жыл бұрын
Liked this video until you started typing yarn commands and then I got lost. I thought this is a git commit message video. What is yarn? I guess I have to go away and figure that one out and them come back.
@xena8_8
@xena8_8 2 жыл бұрын
A little too fast but good :)
@SovereignThrone
@SovereignThrone 3 сағат бұрын
yes, especially the last part is a little quick :d
@memegalore257
@memegalore257 Жыл бұрын
Judging from the thumbnail I thought it was @fireship for a second😅
Vue explained to React Developers in 6 mins
6:33
Justin Brooks
Рет қаралды 39 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 91 М.
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 74 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 23 МЛН
Git and GitHub Beginner Tutorial 7 - Git Tags - what, why, when and how
10:42
Automation Step by Step
Рет қаралды 200 М.
How to Code CSS x10 Faster in VSCode! #Shorts
0:41
Justin Brooks
Рет қаралды 6 М.
2.6 Git - Основы - Хороший коммит
5:56
JavaScript.ru
Рет қаралды 59 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 897 М.
Change Git Commit Messages Tutorial
4:48
The Modern Coder
Рет қаралды 16 М.
How Git Works: Explained in 4 Minutes
4:18
ByteByteGo
Рет қаралды 157 М.
Easy Conventional Commits in VSCode - VSCode Pro Tips
4:18
Git Tutorial for Beginners: Learn Git in 1 Hour
1:09:13
Programming with Mosh
Рет қаралды 2,3 МЛН
Learn Git Rebase in 6 minutes // explained with live animations!
6:43
The Modern Coder
Рет қаралды 772 М.
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 74 МЛН