What would be a good commit message for updating package versions using Conventional Commits?

If you use build scope consider this option: build(deps): bump React version to “17.0.2” Conventional commits are based on the Angular conventional commits. Angular’s CONTRIBUTING.md states: build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)

Git pull from someone else’s fork

Add a new remote (say, other) in your own repo. Pull other/<branch> changes into your local branch (say, add-other-changes). Push to your own forked repo (origin/add-other-changes). Now, when’re you done with add-other-changes branch, create a Pull request & merge it with origin/master. Pull other repo’s changes into your own repo: # go into your own … Read more

Remove empty commits in git

One simple (but slow) way to do this is with git filter-branch and –prune-empty. With no other filters, no other commits will be altered, but any empty ones will be discarded (which will cause all subsequent commits to have new parent-IDs and is therefore still “rewrites history”: not a big deal if this is your … Read more

Can I use a scripted commit template for git?

You probably want to set up a prepare-commit-msg hook on your local repository. It might look like this (say the branches are named ‘work-on-ticket-XXXX’: #!/bin/sh ORIG_MSG_FILE=”$1″ TEMP=`mktemp /tmp/git-XXXXX` TICKETNO=`git branch | grep ‘^\*’ | cut -b3-` (echo “Work on ticket #$TICKETNO”; cat “$ORIG_MSG_FILE”) > “$TEMP” cat “$TEMP” > “$ORIG_MSG_FILE” Put something like that (marked executable) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)