Это видео недоступно.
Сожалеем об этом.

Git Project Setup with Husky, Conventional Commits, and branching strategies.

Поделиться
HTML-код
  • Опубликовано: 15 авг 2024
  • Git Project Setup
    In this video, I will help walkthrough how to properly set up a git project using some best practices such as Husky, Conventional Commits, and explain the main branching strategies.
    Tutorial Github project: github.com/leo...
    MonoRepo repository: github.com/leo...
    Conventional commits: www.convention...
    Husky npm: www.npmjs.com/...
    Commitizen: commitizen-too...
    Git kracken: www.gitkraken....
    Timestamps
    0:00 Intro
    1:05 Clone project
    2:10 Husky install
    7:15 pre-commit hook
    11:00 lint-staged
    14:40 Conventional Commits
    16:04 commit-msg hook
    18:40 Install commitizen
    21:20 git-flow branching strategy
    24:25 github-flow branching strategy
    27:20 gitlab-flow branching strategy

Комментарии • 29

  • @CodeDunks
    @CodeDunks  3 года назад +2

    #DISCLAIMER!!
    For the mono repo setup of husky, I install the husky directory for v6 in a subfolder. In this example I use git-husky-setup but you can use something like a .config folder to store these custom script commits
    Also, this will make it so that the husky scripts defined within the .husky directory to be executed no matter what sub repo you are working in. Meaning changes in next-ts-frontend will execute the .husky pre-commit script from git-husky-setup
    The way to fix this so that only the packages with changes are executed is to use a library called Lerna
    www.npmjs.com/package/lerna
    I haven't had the time to set this up yet but plan on it to learn here in a bit. Just wanted to let you know just in case.

    • @justinoneill2837
      @justinoneill2837 2 года назад

      i'd like to see a monorepo video setup w/ *Husky* + *PNPM Workspaces*

  • @ashishkarki4880
    @ashishkarki4880 3 года назад +1

    Impressive stuff and you read my mind, i was looking for something along similar lines. Thanks

  • @bad_guru_
    @bad_guru_ 11 месяцев назад

    Really good video. I have learned a lot!!!

  • @shabikashab7108
    @shabikashab7108 Год назад

    very informative. I would really appriciete if you can make a detailed video about eslint and prettier configuration along with testing

  • @detective_osint
    @detective_osint 2 года назад

    Really good video. I have learned a lot!!! thanks for sharing your knowledge

  • @adilrashitov2877
    @adilrashitov2877 2 года назад

    Thank you man) You helped me a lot!

  • @KarimAlbakry
    @KarimAlbakry Год назад

    praise: Great job.🤗

  • @nishukumar7621
    @nishukumar7621 Год назад

    Very good video

  • @alexdorosin6168
    @alexdorosin6168 2 года назад

    nice video, mate
    thanks a lot!

  • @tifactlong7431
    @tifactlong7431 Год назад

    Really helpful

  • @jhonrvlogger
    @jhonrvlogger 2 года назад

    Thank you so much brother!!!!

  • @r13aero
    @r13aero 2 года назад

    thank you, subscribed!

  • @youneshenni5417
    @youneshenni5417 2 года назад

    great tutorial :)

  • @NikosKatsikanis
    @NikosKatsikanis 2 года назад

    Should I add the underscore folder to ,y git repository?
    eidt, prob not sicne the gitignore * in there

  • @oktomatiko59
    @oktomatiko59 2 года назад +2

    Question: After initiating husky, should we checkin/push the created .husky-folder also into the git repository, so other teammembers dont have to init husky again?

    • @CodeDunks
      @CodeDunks  2 года назад +4

      Yes if you want those hooks to be standard for your repo than they should be committed

  • @muralit7332
    @muralit7332 Год назад

    Can I use husky - hooks for my python projects !! If no kindly suggest alternatives !

  • @anuroop748
    @anuroop748 3 года назад

    Best

  • @razvanv339
    @razvanv339 Год назад

    where can I find the code base that you pasted in 'commit-msg' husky file? thank you!

  • @jonathanhernandez5917
    @jonathanhernandez5917 2 года назад

    there is one video on your adds, but very util info

  • @NikosKatsikanis
    @NikosKatsikanis 2 года назад

    my precommit does not run when committing

  • @adilnawaz5346
    @adilnawaz5346 Год назад

    Thankssss

  • @compmaestros6155
    @compmaestros6155 2 года назад

    Great setup! If I may ask, what is that extension that's showing like "You 4 days ago | 1 author (You)"?

  • @subhranshudas8862
    @subhranshudas8862 2 года назад

    Great video, few things i noticed when i tried to replicate the commitizen tool in my workspace with yarn
    1. zsh: command not found: cz (when typing just cz)
    2. zsh: command not found: git-cz (when typing just git-cz)
    3. git: 'cz' is not a git command. See 'git --help' (when typing git cz)
    But it works when i type
    yarn git-cz
    How to fix these?
    Thanks!!

    • @bryanDaMazo16
      @bryanDaMazo16 2 года назад

      you can add a new script in the package.json "cz": "git-cz" so you can use as yarn cz. Another options is to install commitizen globally.

  • @kornelijussliubauskas8299
    @kornelijussliubauskas8299 2 года назад

    How did you deal with nvmrc?

  • @Hellbending
    @Hellbending 8 месяцев назад

    Guys… please for the love of everything don’t use a linter for formatting 🤣🤣😓😓