Тёмный

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

CodeDunks
Подписаться 7 тыс.
Просмотров 25 тыс.
50% 1

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/leoroese/husky-set...
MonoRepo repository: github.com/leoroese/blog-tube
Conventional commits: www.conventionalcommits.org/e...
Husky npm: www.npmjs.com/package/husky
Commitizen: commitizen-tools.github.io/co...
Git kracken: www.gitkraken.com/learn/git/g...
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

Опубликовано:

 

23 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
@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!
@jhonrvlogger
@jhonrvlogger 2 года назад
Thank you so much brother!!!!
@alexdorosin6168
@alexdorosin6168 2 года назад
nice video, mate thanks a lot!
@r13aero
@r13aero 2 года назад
thank you, subscribed!
@KarimAlbakry
@KarimAlbakry Год назад
praise: Great job.🤗
@tifactlong7431
@tifactlong7431 Год назад
Really helpful
@youneshenni5417
@youneshenni5417 2 года назад
great tutorial :)
@bad_guru_
@bad_guru_ 10 месяцев назад
Really good video. I have learned a lot!!!
@nishukumar7621
@nishukumar7621 Год назад
Very good video
@shabikashab7108
@shabikashab7108 Год назад
very informative. I would really appriciete if you can make a detailed video about eslint and prettier configuration along with testing
@anuroop748
@anuroop748 3 года назад
Best
@adilnawaz5346
@adilnawaz5346 Год назад
Thankssss
@razvanv339
@razvanv339 Год назад
where can I find the code base that you pasted in 'commit-msg' husky file? thank you!
@NikosKatsikanis
@NikosKatsikanis 2 года назад
Should I add the underscore folder to ,y git repository? eidt, prob not sicne the gitignore * in there
@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
@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?
@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.
@jonathanhernandez5917
@jonathanhernandez5917 2 года назад
there is one video on your adds, but very util info
@NikosKatsikanis
@NikosKatsikanis 2 года назад
my precommit does not run when committing
@Hellbending
@Hellbending 7 месяцев назад
Guys… please for the love of everything don’t use a linter for formatting 🤣🤣😓😓
Далее
Git Project Setup - Part 2 | Github Actions
11:55
Просмотров 1,4 тыс.
Setup Lerna Monorepo with Husky
18:45
Просмотров 8 тыс.
Crossing the Most Dangerous Crosswalk
00:24
Просмотров 8 млн
Копия iPhone с WildBerries
01:00
Просмотров 2,8 млн
Crowdstruck (Windows Outage) - Computerphile
14:42
Просмотров 118 тыс.
Branching Strategies Explained
18:19
Просмотров 131 тыс.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Automate Prettier, ESLint using Husky and Lint-Staged
17:43
Git MERGE vs REBASE: The Definitive Guide
9:39
Просмотров 94 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1 млн
How to commit better with Git
11:41
Просмотров 17 тыс.