Write git commit messages like a PRO with Conventional Commits

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 43

  • @MavMoZu
    @MavMoZu 8 місяців тому +47

    TOP was here hehe

  • @harshkhare7084
    @harshkhare7084 Рік тому +19

    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 👍🏻

  • @rabeehta222
    @rabeehta222 4 роки тому +30

    my commit messages are always trash, this was very informative.

  • @harunjonuzi
    @harunjonuzi Рік тому +3

    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!

  • @danieljimenezG
    @danieljimenezG 4 роки тому +40

    I have been avoiding to write good commit messages, because we are just 2 persons. This video motivates me to do it, thank you!

  • @zafimamyjaryavitsara5312
    @zafimamyjaryavitsara5312 3 роки тому +1

    Thank you so much ! I have an internship now and thisis very helpfull !!!

  • @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.

  • @jsnam8139
    @jsnam8139 3 роки тому +25

    My commit message was like "sadfjhkasfk" lol

    • @RussellTeapot
      @RussellTeapot 2 роки тому +1

      Oh Lord ahahahahah

    • @DraxTheDestroyer
      @DraxTheDestroyer 7 місяців тому +6

      If one day your boss fires you, the reason on the official document will be "sadfjhkasfk" 🤣

    • @jsnam8139
      @jsnam8139 7 місяців тому +2

      @@DraxTheDestroyer 😂😂😂

    • @CrushedAsian255
      @CrushedAsian255 5 місяців тому +2

      git commit -m “idfk”

    • @notrhythm
      @notrhythm 5 місяців тому +1

      "made some changes"

  • @jacopofalcone1772
    @jacopofalcone1772 29 днів тому

    Very helpful 😃 thanks

  • @jondoe79
    @jondoe79 4 роки тому +2

    This channel content is precise and conscience 👍 keep it up bro.

  • @tonimaunde
    @tonimaunde 4 роки тому +1

    Thank you for the video.

  • @riiya7928
    @riiya7928 2 роки тому +1

    What's the commit name for fixing styling on frontend?

  • @hongbo-wei
    @hongbo-wei 5 місяців тому

    Thank you!

  • @shis10
    @shis10 Рік тому

    Amazing video

  • @ziep7457
    @ziep7457 4 місяці тому +2

    video was good, last section lacked context, watched it twice, still didn't understand it.

  • @shubhamjain54519
    @shubhamjain54519 2 роки тому

    2:04 why should we use imperative for the description?

    • @pontusdevelopment9284
      @pontusdevelopment9284 2 роки тому +10

      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 :-)

  • @ricardocastillo9712
    @ricardocastillo9712 3 роки тому +1

    How would you create a changelog for python or java?

  • @phill13able
    @phill13able 2 роки тому +6

    Me: "Work in progress"
    "Work in progress"
    "Work in progress"
    "Work in progress"
    "Work in progress"
    ...

  • @magiccubing2587
    @magiccubing2587 3 роки тому

    Najs👍👍

  • @TechReagan
    @TechReagan 3 роки тому +2

    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?

  • @SenthuranElangovan
    @SenthuranElangovan 4 роки тому

    Thanks man

  • @masoudhesami1382
    @masoudhesami1382 Рік тому

    sooooooooo usefull

  • @SenthuranElangovan
    @SenthuranElangovan 4 роки тому +1

    Please Make simple tut series for Vue3 with Typescript and composite API

  • @chhumchanleak7642
    @chhumchanleak7642 9 місяців тому

    great

  • @captainobvious7898
    @captainobvious7898 2 роки тому +3

    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.

  • @Kevinschart
    @Kevinschart Рік тому

    would've been nice to see you actually do this in the terminal instead of the slid show

  • @luisrnandezc
    @luisrnandezc 5 місяців тому

    The video was useful until min 3:00.
    I don't get the need to go at warp speed on a "how-to" video.

  • @mertgenc9890
    @mertgenc9890 2 роки тому +2

    my commit message was "changes" lmao

  • @B_E_Technology
    @B_E_Technology 3 місяці тому

    top.... yarn ?

  • @xena8_8
    @xena8_8 2 роки тому +2

    A little too fast but good :)

    • @SovereignThrone
      @SovereignThrone 6 місяців тому

      yes, especially the last part is a little quick :d

  • @memegalore257
    @memegalore257 Рік тому

    Judging from the thumbnail I thought it was @fireship for a second😅