git

tags:  git

Tools

Husky

A JavaScript toolsJavaScript tools
Libraries


ArrowJS: Reactivity without a framework
VelocityJS: preview Apache Velocity templates with JavaScript

to use git hooks in JavaScript projects.

Commit without running hooks

Specially useful when it's needed to commit some WIP code.

It needs to use -n/--no-verify option:

git commit -m "WIP" -n

Open questions about Husky

  • What does this tool that doesn't do standard Git hooks?

TODO - separate Git from Github tools (in the references are mentioned some Github only tools)

#### Change parent branch

Sometimes it could happen that we have created a branch from main but we need to apply the feature/hotfix into an older branch (e.g. a previous version of the application already deployed to the user).

The command to change the parent branch and avoid all the extra commits that are coming from main is:

git rebase --onto <new parent> <old parent> <current branch>

TODO Do I still differenciate hotfix from bugfix? Is there any difference at all?

References