You've probably heard the saying, "It's not what you know, it's who you know". There's some truth in this common phrase.
Consider the following scenario:
Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:
Up Arrow: Will show your last commandDown Arrow: Will show your next commandTab: Will auto-complete your commandCtrl + L: Will clear the screenHere is how you can have some default git hooks auto installed with every new repo you clone. I use this to install
a pre-push hook that adds a confirmation step to any push to main so that I don't accidentally push up any changes.
git config --global init.templatedir '~/.git_template'
mkdir -p ~/.git_template/hooks
pre-push hook code in .git_template/hooks/pre-pushMigrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.
To learn more about migrations, check out this article on the different types of database migrations!