No video

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

  Рет қаралды 25,740

CodeDunks

CodeDunks

Күн бұрын

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 жыл бұрын
#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 жыл бұрын
Impressive stuff and you read my mind, i was looking for something along similar lines. Thanks
@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
@KarimAlbakry
@KarimAlbakry Жыл бұрын
praise: Great job.🤗
@adilrashitov2877
@adilrashitov2877 2 жыл бұрын
Thank you man) You helped me a lot!
@bad_guru_
@bad_guru_ 11 ай бұрын
Really good video. I have learned a lot!!!
@nishukumar7621
@nishukumar7621 Жыл бұрын
Very good video
@tifactlong7431
@tifactlong7431 Жыл бұрын
Really helpful
@jhonrvlogger
@jhonrvlogger 2 жыл бұрын
Thank you so much brother!!!!
@alexdorosin6168
@alexdorosin6168 2 жыл бұрын
nice video, mate thanks a lot!
@r13aero
@r13aero 2 жыл бұрын
thank you, subscribed!
@youneshenni5417
@youneshenni5417 2 жыл бұрын
great tutorial :)
@compmaestros6155
@compmaestros6155 2 жыл бұрын
Great setup! If I may ask, what is that extension that's showing like "You 4 days ago | 1 author (You)"?
@CodeDunks
@CodeDunks 2 жыл бұрын
I think its gitlens
@oktomatiko59
@oktomatiko59 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 жыл бұрын
Yes if you want those hooks to be standard for your repo than they should be committed
@adilnawaz5346
@adilnawaz5346 Жыл бұрын
Thankssss
@anuroop748
@anuroop748 3 жыл бұрын
Best
@jonathanhernandez5917
@jonathanhernandez5917 2 жыл бұрын
there is one video on your adds, but very util info
@NikosKatsikanis
@NikosKatsikanis 2 жыл бұрын
Should I add the underscore folder to ,y git repository? eidt, prob not sicne the gitignore * in there
@razvanv339
@razvanv339 Жыл бұрын
where can I find the code base that you pasted in 'commit-msg' husky file? thank you!
@muralit7332
@muralit7332 Жыл бұрын
Can I use husky - hooks for my python projects !! If no kindly suggest alternatives !
@kornelijussliubauskas8299
@kornelijussliubauskas8299 2 жыл бұрын
How did you deal with nvmrc?
@NikosKatsikanis
@NikosKatsikanis 2 жыл бұрын
my precommit does not run when committing
@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.
@Hellbending
@Hellbending 8 ай бұрын
Guys… please for the love of everything don’t use a linter for formatting 🤣🤣😓😓
Git Project Setup - Part 2 | Github Actions
11:55
CodeDunks
Рет қаралды 1,4 М.
Setup Lerna Monorepo with Husky
18:45
CodeDunks
Рет қаралды 8 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 25 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 13 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 59 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
How to commit better with Git
11:41
Kie Codes
Рет қаралды 17 М.
Getting started with branching workflows, Git Flow and GitHub Flow
10:30
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 907 М.
Lint Staged With Husky for Pre-commit Validations
10:31
Monsterlessons Academy
Рет қаралды 20 М.
Automate Prettier, ESLint using Husky and Lint-Staged
17:43
Bout Education
Рет қаралды 10 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 25 МЛН