When to use “chore” as type of commit message?

You can see a short definition in “Git Commit Msg”: chore: updating grunt tasks etc; no production code change It is used in: “Semantic Commit Messages” and in the project “fteem/git-semantic-commits“. git chore “commit-message-here” -> git commit -m ‘chore: commit-message-here’ Modifying the .gitignore would be part of the “chores”. “grunt task” means nothing that an … Read more

How to edit incorrect commit message in Mercurial? [duplicate]

Update: Mercurial has added –amend which should be the preferred option now. You can rollback the last commit (but only the last one) with hg rollback and then reapply it. Important: this permanently removes the latest commit (or pull). So if you’ve done a hg update that commit is no longer in your working directory … Read more

Print commit message of a given commit in git

It’s not “plumbing”, but it’ll do exactly what you want: $ git log –format=%B -n 1 <commit> If you absolutely need a “plumbing” command (not sure why that’s a requirement), you can use rev-list: $ git rev-list –format=%B –max-count=1 <commit> Although rev-list will also print out the commit sha (on the first line) in addition … Read more

How to output git log with the first line only?

Have you tried this? git log –oneline It’s an alias for git log –pretty=oneline –abbrev-commit, and displays the “short sha” and “short description”, for example: 9bee8857 Write more code 831fdd6e Write some code Second line of message The problem is that you are missing an empty line after the first line of your commit message. … Read more

Should I use past or present tense in git commit messages? [closed]

The preference for present-tense, imperative-style commit messages comes from Git itself. From Documentation/SubmittingPatches in the Git repo: Describe your changes in imperative mood, e.g. “make xyzzy do frotz” instead of “[This patch] makes xyzzy do frotz” or “[I] changed xyzzy to do frotz”, as if you are giving orders to the codebase to change its … Read more

How do I make git use the editor of my choice for editing commit messages?

Setting the default editor for Git Pick one: Set core.editor in your Git config: git config –global core.editor “vim” Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim Setting the default editor for all programs Set the standardized VISUAL and EDITOR environment variables*: export VISUAL=vim export EDITOR=”$VISUAL” NOTE: Setting both is not necessarily needed, but some programs … Read more

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